【发布时间】:2021-02-15 19:24:01
【问题描述】:
如何为一个订单创建多个授权?
根据文档:
订单有效期为 29 天。在此期间,您可以请求一到十个或更多的授权,以确保资金的可用性。默认情况下,您可以为每个订单设置最多十个基本授权。 https://developer.paypal.com/docs/integration/direct/payments/orders/#overview
我尝试使用intent=authorize 创建订单,然后使用
https://api.paypal.com/v2/checkout/orders/orderId/authorize
首先它成功了,但是当我想创建另一个授权时,它给了我错误:
issue":"ORDER_ALREADY_AUTHORIZED","description":"Order already authorized.If 'intent=AUTHORIZE' only one authorization per order is allowed." "debug_id":"47084737aefa3"
所以我取消了原来的授权,然后尝试创建一个新的,还是一样的错误。
然后我改变了intent=capture,它给了我
"name":"UNPROCESSABLE_ENTITY","details":[{"issue":"ACTION_DOES_NOT_MATCH_INTENT","description":"Order was created with an intent to 'CAPTURE'. Please use v2/checkout/orders/order_id/capture to complete the transaction or alternately Create an order with an intent of 'AUTHORIZE'."
"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"8c381672a8f1e"
任何帮助将不胜感激!!!
【问题讨论】:
标签: paypal