承接 myagmarsurensedjav/simple-payment 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

myagmarsurensedjav/simple-payment

最新稳定版本:v0.8.1

Composer 安装命令:

composer require myagmarsurensedjav/simple-payment

包简介

A simple payment gateway implementation supporting multiple payment methods for Laravel applications.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require myagmarsurensedjav/simple-payment

And run the following installer command

php artisan simple-payment:install

You can publish the config file with:

php artisan vendor:publish --tag="simple-payment-config"

This is the contents of the published config file:

<?php

// config for MyagmarsurenSedjav/SimplePayment
return [
    'default' => env('SIMPLE_PAYMENT_DEFAULT', 'qpay'),

    'drivers' => [
        'qpay' => [
            'env' => env('QPAY_ENV', 'fake'),
            'username' => env('QPAY_USERNAME'),
            'password' => env('QPAY_PASSWORD'),
            'invoice_code' => env('QPAY_INVOICE_CODE'),
        ],
        'golomt' => [
            'env' => env('GOLOMT_ENV', 'fake'),
            'access_token' => env('GOLOMT_ACCESS_TOKEN'),
            'hash_key' => env('GOLOMT_HASH_KEY'),
        ],
    ],

    'user_model' => 'App\Models\User',

    'notification_middleware' => [
        // 'api'
    ],

    'return_middlewares' => [
        // 'web'
    ],
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="simple-payment-views"

Usage

MyagmarsurenSedjav\SimplePayment\Contracts\Payable interface should be implemented by the model that will be paid.

use MyagmarsurenSedjav\SimplePayment\Facades\SimplePayment;

Route::get('/invoices/{invoice}/payment', function (Invoice $invoice) {
    return SimplePayment::create($invoice);
});

If you need specific driver, you can use driver method.

SimplePayment::driver('socialpay')->create($invoice);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 600
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-19