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
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
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!