How do I integrate PayUMoney Refund API in PHP [cl

2019-04-16 19:56发布

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条回答
Animai°情兽
2楼-- · 2019-04-16 20:38

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!

查看更多
登录 后发表回答