zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    python-条件判断
    获取网卡名称
    vSphere Client安装
    python远程执行命令
    xorm操作
    httpd服务安装配置
    error: failed to push some refs to 'git@gitee.com:xxxx'
    三种获取数据的方法fetch和ajax和axios
    react组件的生命周期
    react在移动端的自适应布局
  • 原文地址:https://www.cnblogs.com/zhh2020/p/12576936.html
Copyright © 2011-2022 走看看