sevengps/payunit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sevengps/payunit

最新稳定版本:v1.0.8

Composer 安装命令:

composer require sevengps/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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2020-12-31