paypal支付争议处理

paypal商家如何处理客户申诉,解决争议

1.先从https://developer.paypal.com/获取商家开发者账户的应用的id和secret

2.通过id和key获取临时token

curl -v https://api.paypal.com/v1/oauth2/token -u "id:key" -d "grant_type=client_credentials"

3.拉取争议列表,其中dispute_state参数指要拉取的争议类型

curl -v -X GET "https://api.paypal.com/v1/customer/disputes?page=1&page_size=50&dispute_state=REQUIRED_ACTION" -H "Content-Type: application/json" -H "Authorization: Bearer token"

4.拉取单个争议详情,其中包含交易号等信息

curl -v -X GET https://api.paypal.com/v1/customer/disputes/{dispute_id} -H "Content-Type: application/json" -H "Authorization: Bearer token"

5.通过ID承担索赔责任,即退款

curl -v -X POST https://api.paypal.com/v1/customer/disputes/{dispute_id}/accept-claim -H "Content-Type: application/json" -H "Authorization: Bearer Access-Token" -d '{"note": "Full refund to the customer."}'

详情参考

https://developer.paypal.com/docs/api/customer-disputes/v1/#disputes_list

猜你喜欢

转载自www.cnblogs.com/zhh2020/p/12576936.html