Will repeated refund requests cause duplicate refunds?
No, repeated refund requests will not result in multiple refunds.
For fund operation requests, including the refunds, Alipay uses an idempotent mechanism to ensure the security of operations. For the same operation, no matter how many repeated requests are sent, the effect and the returned result remain the same.
In addtion, for Alipay payment requests, the idempotent parameter is the external transaction number, partner_trans_id or out_order_no. For Alipay refunds, the idempotent parameter is the external refund number, partner_refund_id or out_return_no.
重复发起退款请求会造成重复退款吗?
重复发起相同退款请求不会造成重复退款。
对应资金操作类请求,支付宝有幂等机制来保障操作的安全性。
针对同一个操作,不管请求多少次,产生效果或返回的结果都是一样的。
支付宝的支付请求,幂等参数为外部订单号,退款请求幂等参数为外部退款号。
NEED HELP?