定制 swissfreecommerce/monopay-merchant-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

swissfreecommerce/monopay-merchant-laravel

Composer 安装命令:

composer require swissfreecommerce/monopay-merchant-laravel

包简介

A PHP wrapper for Swiss free commerce payment API

README 文档

README

This package enables Laravel to communicate with the Monopay payment system

Install via composer

Run the following command to pull in the latest version:

composer require swissfreecommerce/monopay-merchant-laravel

Add service provider ( Laravel 5.4 or below )

Add the service provider to the providers array in the config/app.php config file as follows:

'providers' => [

    ...

    SwissFreeCommerce\PaymentMerchant\Providers\MonopayServiceProvider::class,
]

Publish the config

Copy the config file from vendor/swissfreecommerce/monopay-merchant-laravel/config/config.php to config folder of your Laravel application and rename it to monopay.php

Run the following command to publish the package config file:

php artisan vendor:publish --provider="SwissFreeCommerce\PaymentMerchant\Providers\MonopayServiceProvider"

You should now have a config/monopay.php file that allows you to configure the basics of this package.

Documentation

Get Currency

In order to receive all the currencies, a request must be sent in the following form

use MonopayService;
$service = new MonopayService;

$result = $service->getCurrency();

Merchant Request

To send a request, the request must be sent in the following form

use MonopayService;
use SwissFreeCommerce\PaymentMerchant\Data\DataRequest;
$service = new MonopayService;

$data = new DataRequest('currency iso code', 'order id in your system', 'float amount');

$result = $service->request($data);

Merchant Verify

To send a verify, the request must be sent in the following form

use MonopayService;
use SwissFreeCommerce\PaymentMerchant\Data\TrackingCode;
$service = new MonopayService;

$data = new TrackingCode('tracking code');

$result = $service->verify($data);

Merchant Status

To send a status, the request must be sent in the following form

use MonopayService;
use SwissFreeCommerce\PaymentMerchant\Data\TrackingCode;
$service = new MonopayService;

$data = new TrackingCode('tracking code');

$result = $service->status($data);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-04