PayU Hosted Checkout Integration

The following diagram depicts the steps involved in the end-to-end integration process of International payments.

📘

Note:

You need to contact your PayU Key Account Manager to enable Dynamic Currency Conversion.

👍

Before you begin:

Register for a account with PayU before you start integration. For more information, refer to Register for a Merchant Account.


Steps to Integrate:

  1. Make the transaction request to PayU and check the response from PayU
  2. Verify the payment

Step 1: Make the transaction request to PayU and check the response

With the POST REQUEST, the customer will be redirected to the PayU’s payment page. The customer now selects the credit card payment option on PayU’s page and clicks the Pay Now button. PayU redirects the customer to the chosen payment method. The customer enters an international credit card number, and PayU displays the conversion. For the description of the request and response parameters, refer to Response Parameters section of Collect Payments API.

PayU marks the transaction status based on the response received from the bank. PayU provides the final transaction response string to the merchant through a POST RESPONSE. The parameters in this response are covered in the subsequent sections.

📘

Reference:

For a list of card details for testing dynamic currency conversion, refer to Test Cards, UPI ID and Wallets.

📘

Notes:

  • For DCC eligible transactions, no changes are required in the existing integration of Query transactions or Refund transactions. In case of refunds, the merchant can initiate refunds in INR (original amount and currency) only. PayU will internally convert the same into the final amount and currency charged to the consumer using the FX rate, which was applied on the date of sale.
  • There is no change required in handling the response from PayU as the response parameters are similar to the regular transaction
  • It is recommended to collect the customer’s e-mail address, phone, address, city, state, and country and then post those details along with the payment request with PayU. This will help in checking the risk of the transaction based on these data.

Sample request

Sample response

Array
(
    [mihpayid] => 403993715527769337
    [mode] => CC
    [status] => success
    [unmappedstatus] => captured
    [key] => smsplus
    [txnid] => 86e836b84be8dc6f7894
    [amount] => 10.00
    [cardCategory] => domestic
    [discount] => 0.00
    [net_amount_debit] => 10
    [addedon] => 2022-11-25 11:30:36
    [productinfo] => Product Info
    [firstname] => Payu-Admin
    [lastname] => 
    [address1] => 
    [address2] => 
    [city] => 
    [state] => 
    [country] => 
    [zipcode] => 
    [email] => [email protected]
    [phone] => 1234567890
    [udf1] => 
    [udf2] => 
    [udf3] => 
    [udf4] => 
    [udf5] => 
    [udf6] => 
    [udf7] => 
    [udf8] => 
    [udf9] => 
    [udf10] => 
    [hash] => df565fdcbdd0172c42bf1ba1429c3f48e7215933574f932f37bb133ec4ac89d93535a1bf7674ec4514ffd238ec36e39524142b8d2415554ac7ced49707ea6940
    [field1] => 
    [field2] => 
    [field3] => 
    [field4] => 
    [field5] => 
    [field6] => 
    [field7] => 
    [field8] => 
    [field9] => Transaction Completed Successfully
    [payment_source] => payu
    [PG_TYPE] => CC-PG
    [bank_ref_num] => e0e4a0ca-e356-412a-8f3a-9d69cede5a04
    [bankcode] => MASTCC
    [error] => E000
    [error_Message] => No Error
    [success_at] => 2022-11-25 11:33:41
    [cardnum] => XXXXXXXXXXXX1287
    [cardhash] => This field is no longer supported in postback params.
)

Step 2: Verify the payment

Verify the transaction details using the Verification Payment API. For more information, For API reference, refer to Verify Payment API.

📘

Note:

The transaction ID that you posted in Step 1 with PayU must be used here.