PayPal 订单付款的 INTERNAL_SERVICE_ERROR
Posted
技术标签:
【中文标题】PayPal 订单付款的 INTERNAL_SERVICE_ERROR【英文标题】:INTERNAL_SERVICE_ERROR on PayPal order pay 【发布时间】:2018-08-19 02:33:36 【问题描述】:问题已更新 - 添加了更多详细信息。 当我尝试为订单付款时,我从 PayPal 收到 500 (INTERNAL_SERVICE_ERROR) 错误。
我从创建订单中得到确定,并获得 orderID - 订单状态已创建。 订单已被买家批准 - 成功且订单状态变为 APPROVED。
https://api.sandbox.paypal.com/v1/checkout/orders创建的订单
使用贝宝批准https://www.paypalobjects.com/api/checkout.js
"id": "53T50821FM697283T",
"gross_total_amount":
"value": "26.66",
"currency": "ILS"
,
"purchase_units": [
"reference_id": "20180318-64466",
"amount":
"currency": "ILS",
"total": "26.66"
,
"payee":
"email": "d0535318380-classeeks@gmail.com"
,
"items": [
"name": "Meeting",
"sku": "20180318-64466",
"description": "Meeting 1/26/2018 1:00 AM-1/26/2018 2:20 AM. aaaaa",
"price": "26.66",
"currency": "ILS",
"quantity": 1
],
"shipping_address":
"recipient_name": "Andrey Dyachenko",
"line1": "ישראליס 5 דירה 4",
"city": "תל-אביב",
"country_code": "IL",
"postal_code": "61014",
"state": "",
"type": "HOME_OR_WORK"
,
"partner_fee_details":
"receiver":
"email": "d0535318380-reciver@gmail.com"
,
"amount":
"value": "12.66",
"currency": "ILS"
],
"payer_info":
"email": "d0535318380-buyer@gmail.com",
"first_name": "Andrey",
"last_name": "Dyachenko",
"payer_id": "BZDA9RCZXKYQY",
"country_code": "IL",
"shipping_address":
"recipient_name": "Andrey Dyachenko",
"line1": "ישראליס 5 דירה 4",
"city": "תל-אביב",
"country_code": "IL",
"postal_code": "61014",
"state": "",
"type": "HOME_OR_WORK"
,
"metadata":
"supplementary_data": [
"name": "risk_correlation_id",
"value": "53T50821FM697283T"
,
"name": "buyer_ipaddress",
"value": "109.65.134.129"
,
"name": "external_channel",
"value": "WEB"
]
,
"redirect_urls":
"return_url": "https://classeeks.com/order/details/70368c93-90db-4a8e-bd82-6d611acc2d17",
"cancel_url": "https://classeeks.com/order/details/70368c93-90db-4a8e-bd82-6d611acc2d17"
,
"create_time": "2018-03-18T19:49:11Z",
"links": [
"href": "https://api.sandbox.paypal.com/v1/checkout/orders/53T50821FM697283T",
"rel": "self",
"method": "GET"
,
"href": "https://api.sandbox.paypal.com/v1/checkout/orders/53T50821FM697283T/capture",
"rel": "capture",
"method": "POST"
],
"status": "APPROVED"
下一步付款https://api.sandbox.paypal.com/v1/checkout/orders/53T50821FM697283T/pay
"disbursement_mode":"DELAYED"
回应
"name": "INTERNAL_SERVICE_ERROR",
"message": "The server encountered an internal error that prevented it from fulfilling this request.",
"information_link": "https://developer.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR",
"debug_id": "be0c6976ab17a"
基于https://demo.paypal.com/us/demo/go?page=cart
【问题讨论】:
你发送的 JSON 正文是什么? 错误信息中的信息太少。尝试调试是哪个请求参数导致这个错误 问题已编辑。添加了更多信息! 我不确定错误是否不是由“payee”和“partner_fee_details.receiver”引起的。我不明白到底谁是谁?收款人是收款人还是只收取交易百分比(佣金)的人? 【参考方案1】:如果您已成功创建订单,那么您可以直接获取订单或创建将资金搁置的授权,然后您可以获取授权。检查doc 以获取 PayPal 订单 API。
【讨论】:
PP_MTS_hzhu:你能再看看这个问题吗?问题中添加了额外数据。以上是关于PayPal 订单付款的 INTERNAL_SERVICE_ERROR的主要内容,如果未能解决你的问题,请参考以下文章
PayPal 订单付款的 INTERNAL_SERVICE_ERROR
Magento + Paypal - 订单状态停留在“付款审查”
Paypal Instant Payment Notification 需要将付款人订单与付款匹配
WooCommerce 订单状态未正确分配 PayPal 付款