承接 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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固