Best practice
API idempotency
Alipay checks the idempotence for payment, refund, and other requests with the idempotency fields to keep an accurate transaction or refund result for each request. You need to know Alipay API idempotency rules and make use of the rules to serve your business. For more details about idempotency, see API idempotency.