Google Pay PayPal 是否已弃用?

问题描述

所以我的问题是,PayPal 建议了一种已弃用的请求类型,但我不知道要使用什么 API,因此我与 Google Pay 的集成可用于 Paypal。这是 PayPal 建议的 api:Google Pay Integration。 API 返回:

`{
"name": "INTERNAL_SERVICE_ERROR","message": "An internal service error has occurred","information_link": "https://developer.paypal.com/docs/api/payments/#errors","debug_id": "41a6f4507a2df"
 }`

身体是这样的:

` {
"intent": "sale","payer": {
    "payment_method": "paypal","funding_instruments": [
        {
            "credit_card_token": {
                "credit_card_id": "CARD-1MD19612EW4364010KGFNJQI","external_customer_id": "joe_shopper408-334-8890"
            }
        }
    ],"payer_info": {
        "email": "sb-coy8y5423854@personal.example.com","payer_id": "AR6cGL6IXfI_BwzZGeBcpES7ilv1FZqJlYeMr3TZnp-07woQCczOi1oTjiiz4HQLqQgrMVPE6Ng2QafR"
    }
},"transactions": [
    {
        "amount": {
            "total": "30.11","currency": "USD","details": {
                "subtotal": "30.00","tax": "0.07","shipping": "0.03","handling_fee": "1.00","shipping_discount": "-1.00","insurance": "0.01"
            }
        },"description": "The payment transaction description.","invoice_number": "48787589673","payment_options": {
            "allowed_payment_method": "INSTANT_FUNDING_SOURCE"
        },"soft_descriptor": "ECHI5786786","item_list": {
            "items": [
                {
                    "name": "hat","description": "brown hat.","quantity": "5","price": "3","tax": "0.01","sku": "1","currency": "USD"
                },{
                    "name": "handbag","description": "Black handbag.","quantity": "1","price": "15","tax": "0.02","sku": "product34","currency": "USD"
                }
            ],"shipping_address": {
                "recipient_name": "Brian Robinson","line1": "4th Floor","line2": "Unit #34","city": "San Jose","country_code": "US","postal_code": "95131","phone": "011862212345678","state": "CA"
            }
        }
    }
],"note_to_payer": "Contact us for any questions on your order.","redirect_urls": {
    "return_url": "https://yourwebsite.com/return","cancel_url": "https://yourwebsite.com/cancel"
}

}`

我应该使用什么请求的任何提示?我正在使用信用卡令牌进行测试,因为我的国家/地区没有 google pay 和 paypal 支持。但我需要接受 Google Pay 直接令牌的 PayPal API。

编辑:

我使用了 this guide通知此 API 网址:api-m.sandBox.paypal.com/v1/payments/payment

但它总是返回所描述的错误。 V2 请求完全不同,并且不支持(在付款中)用于捕获。需要不同的 paypal api 请求,但我不知道该使用什么。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)