Scenario Overview#
If the merchant application allows users to "cancel" or "close" orders, any payment orders created by that merchant application need to be closed to prevent users from completing the payment after closing the merchant application order.Flowchart#
Step 2: After the user confirms the cancellation of the order, the merchant calls the payment platform’s Payment Order Closure API;
After the merchant closes the payment order, there can be normal and abnormal return scenarios:Normal Return: It returns the merchant's original order number, which the merchant can use to proceed to the next step.
Abnormal Return: It returns an HTTP code or error code, which the merchant can use to troubleshoot the issue based on the error code from the interface and take the necessary steps.
Step 4: Once the payment order is successfully closed, the merchant can verify the order status by calling the Payment Order Query API to check if the status is "CLOSED."Modified at 2024-09-12 05:58:49