ipasspay/sdk-en

v1.2.5 2023-06-08 03:38 UTC

This package is not auto-updated.

Last update: 2024-10-10 09:45:42 UTC


README

[Preparation for using the SDK]
If you use this SDK, please replace file IpasspayConfig-dist.php in directory src/IpasspayChannel/config with file IpasspayConfig.php, then configure your own merchant portal parameters in it.
Tips: 1.In Linux, the command to replace the file is: cp IpasspayConfig-dist.php IpasspayConfig.php
      2.The IpasspayConfig.php file will not be changed if you run command "composer update ipasspay/sdk-en"

[Instructions for using the SDK]
1.By the SDK, you will simply create the request data according the API documentation, use the demo as needed, and communicate with iPasspay.
2.By the SDK, there's no need to worry about timestamp, signatures, and verification, the SDK is already integrated, it can be called directly to complete encryption, verification and communication.
3.The SDK will process the response data, and you can directly obtain the response data in the form of array through the corresponding method.
4.The SDK will pre-judge parameters before initiating a request to reduce invalid server network overhead and facilitate the discovery of errors during integration.
5.It is suggested that merchants with technical ability to use SDK package should use it as far as possible. The SDK package supports PHP5.6 to PHP8.1.

[File description in Demo]
directPay.php : Payment Gateway(Direct)
directPayWithoutCard.php: No credit card information payment gateway (such as digital currency payment gateway)
redirectPay.php : Payment Gateway(Host)
ipasspayNotify.php : Asyn notification
ipasspayReturn.php : Syn notification
refund.php : Refund endpoint
cancelRefund.php : Cancel refund endpoint
queryOrder.php : Order query endpoint
queryOrderList.php : Query order list endpoint
uploadExpress.php : Tracking upload endpoint

[API document link]
https://www.apihome.dev/ipasspay.biz/en-us/

[Airsecurecard Channel]
To use the Airsecurecard service, refer to the examples in the Airsecurecard directory in Demo.
The corresponding configuration files in the src/AirsecurecardChannel/config directory.
[Airsecurecard API document link]
https://www.apihome.dev/airsecurecard.com/en-us/

2022-12-26
Add examples and changes to payment gateways without credit card information (such as digital currency payment gateways)
Notice: Add "without_card_pay_url" config in ipasspayconfig-did.php