I want to integrate refund api PayUMoney Payment Gateway in PHP. Please tell me which api is used for PayUMoney refund and how do I implement it
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This is by no means a complete answer, so feel free to ignore it. But I think it's more than you deserve with that lazy question!
1) Look in the docs: https://www.payumoney.com/pdf/API-Docs.pdf
Api is here (as can be seen in the docs): https://www.payumoney.com/payment/merchant/refundPayment?
Test-server (as can be seen in the docs): https://test.payumoney.com/payment/merchant/refundPayment?
2) All you have to do is one single post request: How do I send a POST request with PHP?
Fill in your data. (As can be seen in the docs).
3) You also need to be able to add authorization to the header of the request:
How to include Authorization header in cURL POST HTTP Request in PHP?
Do yourself a favor and use the test-server until you have it working!