承接 sevencommonfactor/payunit 相关项目开发

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

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

sevencommonfactor/payunit

最新稳定版本:1.0.10

Composer 安装命令:

composer require sevencommonfactor/payunit

包简介

Payunit PHP SDK for the online agreggator

README 文档

README

This is a payment sdk developed by the sevenCommonFactor for it's Payunit agreggator platform

Requirements

  • PHP >= 7.2 (not working with PHP 7.3)
  • Latest cURL Extension

Installation

    composer require sevencommonfactor/payunit

Usage

Add the PayUnit Namespace in your desired controller

    use SevenGps\PayUnit

Create a new instance of the PayUnit class and pass in all the required attributes

  •   $myPayment = new PayUnit(
        "your_api_key",
        "your_api_password",
        "your_api_username",
        "returnUrl",
        "notifyUrl",
        "mode",
        "description",
        "purchaseRef",
        "currency",
        "merchant_name",
        "transaction_id (This id should be alpha numeric and less than 20 characters)"
    );
    

The Mode can be live or test

Call the MakePayment method. This method will redirect to the payment page where the client can perform payment with the payment method you have activated on your dashboard

    $myPayment->makePayment("amount");

Recommendations

Please for security reasons make sure you read your Api key, Api password and Api user are set in an environment config file

Demo

link to demo application https://gitlab.com/sevencommonfactor/payunit-php-demo/-/tree/dev

License

The Payunit PHP SDK is released under a Propretary license sevenCommonFactor.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-04-14