定制 paygateglobal/paygate-php 二次开发

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

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

paygateglobal/paygate-php

Composer 安装命令:

composer require paygateglobal/paygate-php

包简介

Sdk php pour PaygateGlobal

README 文档

README

Raw Files

    git clone https://github.com/Edouardsnipeur/paygate-php.git

Installing

Using composer:

    composer require paygateglobal/paygate-php

Initialization

Production

    $paygate = new \Paygate\Paygate($auth_token);

Request to schedule payout

EXAMPLE API Method

    
    // Example to schedule payout API Method
    $response = $paygate->payNow(
        phone_number : "99000000",
        amount : 1000,
        identifier : "993",
        network : \Paygate\Network::FLOOZ,
        description : "My description", //Optionnal
    );
        

EXAMPLE redirect Method

    // Example to schedule payout redirect Method
    $paygate->redirectPayNow(
        phone_number : "99000000", //Optionnal
        amount : 1000,
        identifier : "993",
        url : "http://exemple.com", //Optionnal
        description : "My description", //Optionnal
    );
        
PARAMETERS DESCRIPTION
phone_number Numéro de téléphone mobile du Client
amount Montant de la transaction sans la devise (Devise par défaut: FCFA)
identifier Identifiant interne de la transaction de l’e-commerce. Cet identifiant doit etre unique.
network valeurs possibles: \Paygate\Network::FLOOZ, \Paygate\Network::TMONEY
url Lien de la page vers laquelle le client sera redirigé après le paiement

TRANSACTION $response Object

Nom DESCRIPTION
tx_reference Identifiant Unique générée par PayGateGlobal pour la transaction
status Code d’état de la transaction.

TRANSACTION POSSIBLE STATUS LIST

STATUS DESCRIPTION
SUCCESS Transaction enregistrée avec succès
INVALID_TOKEN Jeton d’authentification invalide
INVALID_PARAMS Paramètres Invalides
DOUBLONS This transaction are already reverted or are not eligible
INTERNAL_ERROR Doublons détectées. Une transaction avec le même identifiant existe déja.

TRANSACTION VERIFICATION EXAMPLE

switch ($response->status) {
    case \Paygate\TransactionStatus::SUCCESS
        //...
        break;
    case \Paygate\TransactionStatus::INVALID_TOKEN:
        //...
        break;
    case \Paygate\TransactionStatus::INVALID_PARAMS:
        //...
        break;
    case \Paygate\TransactionStatus::DOUBLONS:
        //...
        break;
    case \Paygate\TransactionStatus::INTERNAL_ERROR:
        //...
        break;
}
        

Request to retrieve transactions

EXAMPLE

    // Verification with Paygate reference code
    $reponse = $paygate->verifyTransactionWithPaygateReference($tx_reference);

    // Verification with Ecommerce identifier
    $reponse = $paygate->verifyTransactionWithEcommerceId($identifier);
PARAMETERS DESCRIPTION
tx_reference Identifiant Unique générée par PayGateGlobal pour la transaction
identifier Identifiant Unique précédemment généré par l'Ecommerçant pour la transaction

TRANSACTION $response Object

Nom DESCRIPTION
tx_reference Identifiant Unique généré par PayGateGlobal pour la transaction
identifier Identifiant interne de la transaction de l’e-commerce. ex: Numero de commande Cet identifiant doit etre unique.
payment_reference Code de référence de paiement généré par Flooz/TMoney. Ce code peut être utilisé en cas de résolution de problèmes ou de plaintes.
status Code d’état du paiement.
datetime Date et Heure du paiement
payment_method Méthode de paiement utilisée par le client. Valeurs possibles: FLOOZ, T-Money

PAYMENT POSSIBLE STATUS LIST

STATUS DESCRIPTION
SUCCESS Paiement réussi avec succès
PENDING En cours
EXPIRED Expiré
CANCELED Annulé

TRANSACTION VERIFICATION EXAMPLE

switch ($response->status) {
    case \Paygate\PaiementStatus::SUCCESS
        //...
        break;
    case \Paygate\PaiementStatus::PENDING:
        //...
        break;
    case \Paygate\PaiementStatus::EXPIRED:
        //...
        break;
    case \Paygate\PaiementStatus::CANCELED:
        //...
        break;
}

paygateglobal/paygate-php 适用场景与选型建议

paygateglobal/paygate-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 36 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 10 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 paygateglobal/paygate-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 paygateglobal/paygate-php 我们能提供哪些服务?
定制开发 / 二次开发

基于 paygateglobal/paygate-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-09