inalto / payway
该软件包最新版本(1.3)没有可用的许可信息。
BCC PayWay 支付网关接口
1.3
2018-01-04 18:08 UTC
This package is not auto-updated.
Last update: 2024-09-18 07:51:17 UTC
README
BCC sinergia Igfs 支付网关 SDK for php 7.x
您可以通过 composer 安装此 SDK
composer require inalto/payway
以下是如何使用它的示例代码片段
require __DIR__.'/vendor/autoload.php'; use PayWay\init\IgfsCgInit; $init = new IgfsCgInit(); //$init->disableCheckSSLCert(); $init->serverURL="https://paymentgateway.it/IGFS_CG_SERVICES/services"; $init->timeout=30000; $init->tid="TID-CODE1234"; $init->kSig="0000000000000000000000000000"; $init->shopID="mytransactionid"; $init->shopUserRef="customer-email"; $init->trType="AUTH"; $init->currencyCode="EUR"; $init->amount=4400; //Amount without comma, 1,00EUR will be 100 $init->langID="IT"; //Language iso code $init->notifyURL="https://myserver.it/my-thankyou-page.php"; $init->errorURL="https://myserver.it/my-error-page.php"; if(!$init->execute()){ echo $init->rc; }else{ print ("location: ".$init->redirectURL); }
祝您使用愉快 :)