Payment Service Provider configuration and payment acceptance process, service provider acceptance
Payment Service Provider acceptance process document address: https://pay.weixin.qq.com/wiki/doc/api/jsapi_sl.php? Chapter = 23_1
1. Service Provider Configuration
- Configure sub-merchants on the service provider platform to obtain the sub-Merchant's payment authorization
- Pay by public account, and set the JSAPI payment authorization directory in the sub-merchant Development Configuration
- Scan the QR code to make the payment. In the Sub-Merchant's payment permission → public account payment configuration, enable Native payment and set the callback URL.
- The service provider configuration for H5 payment is not provided in the document. Configure the callback URL according to the H5 Payment Document of common merchants.
2. Payment acceptance interaction steps
<1> initiate a payment request and call the unified order interface (the Request Path must contain the sanboxnew sandbox path)
<2> the simulation system returns the expected message based on the requested payment amount total_fee, and implements the request data.
<3> the merchant initiates a ticket query and receives the expected data returned by the simulation system.
<4> merchant download statement
3. acceptance process
<1> Replace the payment api url with the sandbox URL.
<2> perform acceptance test cases according to the order of payment types
<3> after acceptance, replace the payment URL
5. Pass the acceptance review and start online/offline transactions
4. Acceptance case
Take public account payment as an example. There are eight acceptance cases, two of which are successful Payment Cases and five are payment exception cases. These seven use cases are required and an optional use case is available.
- Successful payment Use Case (required)
- Payment exception case (required)
1. The order amount is RMB 1.30. The payment is successful and no notification is received.
2. The order amount is RMB 1.31. Payment failed. No notification is received.
3. The order amount is RMB 1.32. The payment is successful and the notification callback is repeated.
4. The order amount is RMB 1.33. The payment is successful and the signature is invalid.
5. The order amount is RMB 1.34. The payment is successful, and the key information of the notification is inconsistent.
(Note: The Notification callback interface should be adjusted according to the exception case)
- Optional payment use cases (optional)
The order amount is RMB 1.30. The payment is successful, the notification fails, and the reconciliation is uneven.