在Pal-Pal的APIC中,我完全失去了。 我一直在与APICA和PayPaleckout SDK号命令合作,试图为一个项目付款。 在试图贬低第2号命令的参考书,以便把多处捕获物用于原先授权的总订单时,我发现,关于付款通知的文件似乎更为有用。 我对两者之间的区别是我所利用的,还是我应该利用的,有点怀疑。
The Orders Reference AP:
An order represents a payment between two or more parties. Use the Orders API to create, update, retrieve, authorize, and capture orders.
Call the Payments API to authorize payments, capture authorized payments, refund payments that have already been captured, and show payment information. Use the Payments API in conjunction with the Orders API. For more information, see the PayPal Checkout Overview.
他们都描述了几乎相同的事情,付款意向书说,应当与第2号命令一并使用,而实际上却没有就如何共同使用这些物品提供任何指导。 所提供的“检查概况”与“Smart Buttons”指南和“APIC”号命令链接,实际上从未提及“付款意向书”。
因此,我的主要问题是:
- What is the difference between the two APIs?
- Which API do I need to use to support multiple captures? It seems like Payments is the only one which supports multiple captures but I already have infrastructure in place using only the Orders API to create an
intent=AUTHORIZE
transaction, have theorder_id
sent to the client so that PayPal can be popped up and the order authorized, and a webhook to receive the notification for that authorization. Can I now use the Payments API just to capture from that? Do I even need to? I can t find anything related to multiple captures in the Orders documentation. - Is there any other good literature describing how all of the moving parts of the Checkout SDK and the Orders/Payments API fit together for a smaller scale project? PayPal s own guides are all over the place and do very little to describe how the different parts interact or when you need one API vs the other.