项目作者: lesterchan

项目描述 :
GP PHP SDK Sample
高级语言: PHP
项目地址: git://github.com/lesterchan/gp-php-sdk-sample.git
创建时间: 2019-08-15T02:29:22Z
项目社区:https://github.com/lesterchan/gp-php-sdk-sample

开源协议:

下载


Sample PHP code for GP PHP SDK

Installation

  1. composer install

Usage

  1. Copy config-sample.php to config.php and fill in your Partner ID, Partner Secret, Client ID, Client Secret, and Merchant ID. Terminal ID is only applicable for POS merchants.
  2. For One-Time Charge, your url will be https://[HOST_NAME]/gp-php-sdk-sample/onetimecharge/ and your redirect_uri will be https://[HOST_NAME]/gp-php-sdk-sample/onetimecharge/complete.php.
  3. For Tokenization, your url will be https://[HOST_NAME]/gp-php-sdk-sample/tokenization/ and your redirect_uri will be https://[HOST_NAME]/gp-php-sdk-sample/tokenization/charge.php.
  4. You will need to whitelist your server URL on the GP Developer Platform.
  5. For POS Merchant Present QR, your sample HTML page with the QR Code will be https://[HOST_NAME]/gp-php-sdk-sample/pos/merchant_present.php.