简体   繁体   English

如何使用paypal以编程方式退款?

[英]How do I programmatically refund using paypal?

致力于我的PayPal集成并且它很棒 - 我想知道在需要退款的情况下是否有办法以编程方式进行退款?

From my understanding, you should use the Refund API. 根据我的理解,您应该使用Refund API。

Doing a refund in PayPal is straight forward if you follow the API documentation mentioned by Machine. 如果您按照Machine提到的API文档,可以直接在PayPal中退款。

You may also find, if you prefer to save money, that you can Void a transaction in PayPal, before it is captured (usually before midnight on the day of the transaction), which is free. 如果您愿意省钱,您可能还会发现,在PayPal被捕获之前(通常在交易当天的午夜之前),您可以在PayPal中取消交易,这是免费的。

I have found that always sending a void first, then if the void fails, sending the refund works well without much overhead. 我发现总是首先发送空白,然后如果空白失败,发送退款很好,没有太多开销。

您可以从这里找到退款交易的完整详细信息: https//developer.paypal.com/docs/classic/api/merchant/RefundTransaction_API_Operation_NVP/

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

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