简体   繁体   English

新的PayPal API-如何退还“订单”?

[英]New PayPal API - How to refund an “order”?

Paypal (Github): payments/OrderCreateForCapture.html 贝宝(Github):payments / OrderCreateForCapture.html

Based on this I want to do a refund. 基于此,我想退款。 Somehow I only find refunds for sales in the API documentation. 不知何故,我只能在API文档中找到销售退款。 From this Order Capture I can not get a SALE ID, so how can I refund it with the new PHP API? 从此订单捕获中,我无法获得销售ID,那么如何使用新的PHP API退款呢? There is not really a solution. 确实没有解决方案。

This is the way I get the payment: http://codepaste.net/c5cpos 这是我获得付款的方式: http : //codepaste.net/c5cpos

This is how I take it in: http://codepaste.net/3yscci 这就是我的看法: http : //codepaste.net/3yscci

But now I also want to be able to refund it... Any suggestions? 但是现在我也希望能够退款...有什么建议吗?

An payment with the Payment action set to 'Order' is not made yet. 尚未将付款操作设为“订单”的付款。 The transaction is triggered only when you capture the order with a specific API call. 仅当您使用特定的API调用捕获订单时,才会触发交易。

So it's obvious you cannot refund an order because not payment was done. 因此很明显,您无法退款,因为未付款。

You can read more about Order, Authorization and Capture here: https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/authcapture/ 您可以在此处阅读有关订单,授权和捕获的更多信息: https : //developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/authcapture/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM