Skip to main content

How to start

1. Apply for Merchant Id and Key

1.1 Complete registration in the OnlinePay Merchant
1.2 Login to the OnlinePay Merchant, go to Personal Centre -> User Management -> Personal Information, and obtain the PrivateKey

2. Parameter signature

2.1 Depending on the payment method, confirm the interface used
2.2 If the sign parameter of the interface is RSA, the signature source string is composed of all non-empty field contents except the signature field, sorted according to the ASCII code of the message field, and connected with the "&" symbol in the manner of "field name = field value"
2.3 The signature algorithm of RSA is SHA256withRSA
2.4 The character set of RSA is UTF-8
2.5 Customers need to generate the public and private keys required for RSA encryption and upload the public keys to the merchant portal
2.6 If the sign parameter of the interface is MD5(A+B+C+PrivateKey)
2.7 The MD5 value generated by MD5(A+B+C+PrivateKey) will be converted to all upper case and the result will be the value of the sign
2.8 The default signature method is RSA

3. Calling the payment interface

Call the interface using the RESTful method

4. Refund

When a customer needs a refund, they can call the Refund interface.