While you integrate PayU Money with your web application you may encounter an error message like “Sorry, Some problem occured”.
I'm taking the code for PHP,
$payupaisa_args = array(
'key' => $this->merchant_id,
'hash' => $hash,
'txnid' => $txnid,
'amount' => $order->order_total,
'firstname' => $order->billing_first_name,
'email' => $order->billing_email,
'phone' => $order->billing_phone,
'productinfo' => $productinfo,
'surl' => $redirect_url,
'furl' => $redirect_url,
'lastname' => $order->billing_last_name,
'address1' => $order->billing_address_1,
'address2' => $order->billing_address_2,
'city' => $order->billing_city,
'state' => $order->billing_state,
'country' => $order->billing_country,
'zipcode' => $order->billing_postcode,
'curl' => $redirect_url,
'pg' => 'NB',
'udf1' => $order_id,
'service_provider' => 'payu_paisa' // must be "payu_paisa"
);
i.e.
$payupaisa_args = array(
'key' => $this->merchant_id,
'hash' => $hash,
'txnid' => $txnid,
'amount' => $order->order_total,
'firstname' => $order->billing_first_name,
'email' => $order->billing_email,
'phone' => $order->billing_phone,
'productinfo' => $productinfo,
'surl' => $redirect_url,
'furl' => $redirect_url,
'lastname' => $order->billing_last_name,
'address1' => $order->billing_address_1,
'address2' => $order->billing_address_2,
'city' => $order->billing_city,
'state' => $order->billing_state,
'country' => $order->billing_country,
'zipcode' => $order->billing_postcode,
'curl' => $redirect_url,
'pg' => 'NB',
'udf1' => $order_id,
'service_provider' => ''
);
I'm taking the code for PHP,
$payupaisa_args = array(
'key' => $this->merchant_id,
'hash' => $hash,
'txnid' => $txnid,
'amount' => $order->order_total,
'firstname' => $order->billing_first_name,
'email' => $order->billing_email,
'phone' => $order->billing_phone,
'productinfo' => $productinfo,
'surl' => $redirect_url,
'furl' => $redirect_url,
'lastname' => $order->billing_last_name,
'address1' => $order->billing_address_1,
'address2' => $order->billing_address_2,
'city' => $order->billing_city,
'state' => $order->billing_state,
'country' => $order->billing_country,
'zipcode' => $order->billing_postcode,
'curl' => $redirect_url,
'pg' => 'NB',
'udf1' => $order_id,
'service_provider' => 'payu_paisa' // must be "payu_paisa"
);
The Fix
The solution is to leave the Service Provide field as blank.i.e.
$payupaisa_args = array(
'key' => $this->merchant_id,
'hash' => $hash,
'txnid' => $txnid,
'amount' => $order->order_total,
'firstname' => $order->billing_first_name,
'email' => $order->billing_email,
'phone' => $order->billing_phone,
'productinfo' => $productinfo,
'surl' => $redirect_url,
'furl' => $redirect_url,
'lastname' => $order->billing_last_name,
'address1' => $order->billing_address_1,
'address2' => $order->billing_address_2,
'city' => $order->billing_city,
'state' => $order->billing_state,
'country' => $order->billing_country,
'zipcode' => $order->billing_postcode,
'curl' => $redirect_url,
'pg' => 'NB',
'udf1' => $order_id,
'service_provider' => ''
);
No comments:
Post a Comment