How do I integrate PayUMoney Refund API in PHP [cl

2019-04-16 20:19发布

问题:

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!