3

After payment is done, I am not redirected to my website using payumoney payment gateway. I am receiving following error. Any help would be appreciated.

URL: https://test.payumoney.com/payment/postBackParam.do

Content

HTTP Status 404 - /settlement/WEB-INF/jsp/.jsp

type Status report

message /settlement/WEB-INF/jsp/.jsp

description The requested resource is not available. Apache Tomcat/7.0.54

Sandip Patidar
  • 157
  • 1
  • 14
Santosh Pradhan
  • 149
  • 1
  • 11

4 Answers4

2

While submitting the purchase info to PayUMoney, there is a field called Productinfo which takes JSON data that contains purchase info like below.

Productinfo = {“paymentParts”:[{ "name":"abc", "description":"abcd", "value":"500", "isRequired":"true", “settlementEvent” : “EmailConfirmation” }, { "name":"xyz", "description":"wxyz", "value":"1500", "isRequired":"false", “settlementEvent”: “EmailConfirmation” }], {“paymentIdentifiers”:[{ "field":"CompletionDate", "value":"31/10/2012” }, { "field":"TxnId", "value":"abced" }]}

When this JSON data is too long, it can not handle the request properly and fails to complete the process.

Santosh Pradhan
  • 149
  • 1
  • 11
1

I ran into the same problem while integrating PayU with our app. I talked to the PayU tech team regarding this. Santosh has answered it correctly.

Just to add to that, as per PayU's tech team, the limit on length of the JSON data is 100.

ankit modi
  • 11
  • 3
1

If you are using PHP then store the JSON format as string

$productinfo1 = '{"paymentParts":[{"name":"Designs","description":"Qty : 33","value":null,"isRequired":"true"}],"paymentIdentifiers":[{"field":"CompletionDate","value":"31/10/2012"},{"field":"txnid","value":"21827f29b9e7c4a3b211"}]}';

Note: Not required to send all products info, as long string leads to payment gateway error.

$productinfo = json_decode(json_encode($productinfo1));

$hash_string = $merchant_key . '|' . $txn_id . '|' . number_format($total, 2, '.', '')  . '|' . $productinfo . '|' . $name . '|' . $email . '|' . $id . '||||||||||' . $salt;
$hash = hash('sha512', $hash_string);

Post the $hash value to pay money.

Jed Fox
  • 2,979
  • 5
  • 28
  • 38
dinesh
  • 342
  • 2
  • 13
0

This is something that might occur at some point of time in test mode because of rigorous testing that happens on test server. It is nothing to worry about.

Jigs
  • 1
  • 3