定制 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.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固