QR Pay(Customer-presented)
Merchants with QR code scanning devices can refer to the solutions provided in this section to access the CodePay gateway for payment.
Integration Instructions
If the merchant is using a POS that has a scanning gun or other device that can scan barcode/QR code, it can be connected through the "QR Pay(Customer-presented)" product provided by CodePay.
The so-called "QR Pay(Customer-presented)" means that the user opens the payment code of each mobile wallet, and the merchant uses the code-scanning device to obtain the content of the user's payment code (which is generally a string of digits or EMV-standardized character strings), and then carries the content of the payment code to request the CodePay interface to complete the deduction. In this payment mode, according to the business rules of each wallet, the password may be required, or the payment may be made directly without verifying the password (generally, small payments are free of password, and large payments are password-checked).
Usage Example
Development Guidelines
We provide a set of REST APIs, please refer to the following table, the APIs are provided with SDKs for several languages, please visit SDK Chapter Description.
Function List | Description |
---|---|
Submit for payment | Submit payment orders through this api |
Cancel order | Close unpaid orders through this api and refund the user if payment has already occurred |
Submit a refund request | If you submit a refund request through this api and the refund does not arrive immediately, you can call the refund inquiry interface to get the progress of the refund. |
Query order | Query the transaction result (consumption/pre-authorization/pre-authorization completion) of a positive transaction order through this api |
Query refund | Query the transaction results of negative transaction orders (consumption cancellation/pre-authorization cancellation/consumption refund/pre-authorization completion refund) through this api |
Transaction result notification | After the transaction, notify the merchant through this webhook to tell the merchant the result of the transaction |