我想在PHP中整合退款api PayUMoney Payment Gateway。请告诉我哪个api用于PayUMoney退款以及如何实施
答案 0 :(得分:0)
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!