lundi 11 juin 2018

How can I programatically do fake payment in payu sandbox?

I have django oscar application which use PayU as a payment provider. I'm writing tests, to test my refund mechanism. So I am using sandbox service for do such things. I have created test, which place request to PayU "create order". Then I got a redirect url, where I can (in browser) do fake payment using my bank account. But in test, I would like to do it programatically. I read whole documentation, but I didn't find such option. On SoF there is no similar questions. PayU support didn't aswer my question(they have 24h).

I'm wondering if there is possibility to post proper form to proper url on payu - but after quick html review I think it may be tricky.

Do you have any ideas how to solve this problem?

Aucun commentaire:

Enregistrer un commentaire