Unknown
Unknown

Reputation: 437

Verification of Payment api of Payu is not working

I am trying to integrate PayU in my website, I have successfully done the payment api part. Now I am trying to call verification api of transaction. I have followed all the steps from documentation.

Method POST:https://test.payu.in/merchant/postservice?form=2

Image enter image description here

I am getting, Sorry Some Problem Occurred without any proper error message.

I am stuck on this. Please help. Any help or comment will be highly appreciated.

My code: Function to make string(in expected format given in the documentation) and Hash using SHA256

    {               string command = "verify_payment";
                    string finalStringToBeHashed = PAYU_KEY +"|"+ command + "|" + transactionId + "|" + PAYU_SALT;
                    string hash = _iPayUServices.GetSHA256(finalStringToBeHashed);
                    return Ok(( hash, finalStringToBeHashed));
    }

and I am confident that my GetSHA256() function is correct. (As it working for payment api's).

Upvotes: 2

Views: 1491

Answers (1)

Roshan Kumar
Roshan Kumar

Reputation: 463

Instead of https://test.payu.in/merchant/postservice?form=2 URL, use https://info.payu.in/merchant/postservice?form=2.

Actually They are upgrading their documentation, so many things are missing as of now. Hopefully, they will add this soon.

Upvotes: 4

Related Questions