This scenario is applicable where a customer is providing the complete card number do the transaction (Card number, Expiry, CVV, and name on card)
HTTP Method: POST
Environment
Test Environment | https://test.payu.in/_payment |
Production Environment | https://secure.payu.in/_payment |
Applicable scenarios
- It is a guest checkout
- It is a standard checkout request where there is no need to save the card
Note
Plain card details coming from the merchant, so no changes are applicable in the request & response.
Request and response elements will remain intact as it is.
Request parameters
Parameter | Description | Example |
---|---|---|
keymandatory | String The merchant key is a unique identifier for a merchant account in PayU's database. | Your Test Key |
api_versionoptional | String The API version for this API. | 1 |
txnidmandatory | String The transaction ID is a reference number for a specific order that is generated by the merchant. It is used to track the order and must be unique. PayU's system will not accept duplicate transaction IDs. | s7hhDQVWvbhBdN |
amountmandatory | String This field should contain the payment amount for the transaction. If you want to use the cardless EMI option, the amount must be at least Rs. 8000 | 10.00 |
productinfomandatory | String It should be a string containing a brief description of the product. Character Limit-100 | iPhone |
firstnamemandatory | String The first name of the customer. Character Limit-60 | Ashish |
emailmandatory | String The email of the customer. Character Limit-50 | [email protected] |
phonemandatory | String The phone number of the customer.Note: This information is helpful when it comes to issues related to fraud detection and chargebacks. Hence, it is must to provide the correct information. | 9876543210 |
lastnamemandatory | String The last name of the customer. Character Limit-60 | Verma |
address1optional | String The first line of the billing address. Character Limit-100 | H.No- 17, Block C, Kalyan Bldg, Khardilkar Road, Mumbai |
address2optional | String The second line of the billing address.Character Limit-100 | 34 Saikripa-Estate, Tilak Nagar |
cityoptional | String The city where your customer resides as part of the billing address. | Mumbai |
stateoptional | String The state where your customer resides as part of the billing address, | Maharashtra |
countryoptional | String The country where your customer resides.Character Limit-50 | India |
zipcodeoptional | String Billing address zip code is mandatory for the cardless EMI option. Character Limit-20 | 400004 |
surlmandatory | String The "surl" field is the success URL, which is the page PayU will redirect to if the transaction is successful. The merchant can handle the response at this URL after the customer is redirected there. | https://apiplayground-response.herokuapp.com/ |
furlmandatory | String The "furl" field is the Failure URL, which is the page PayU will redirect to if the transaction is failed. The merchant can handle the response at this URL after the customer is redirected there. | https://apiplayground-response.herokuapp.com/ |
hashmandatory | String It is used to avoid the possibility of transaction tampering. For more information on hash generation process, refer to Generate Hash. | eabec285da28fd
0e3054d41a4d24fe
9f7599c9d0b6664
6f7a9984303fd612
4044b6206daf831
e9a8bda28a6200d
318293a13d6c193
109b60bd4b4f8b09
c90972 |
pgmandatory | String The pg parameter determines which payment tabs will be displayed. Here, use 'CC' as the value. | CC |
bankcodemandatory | String Each payment option is identified with a unique bank code at PayU. The merchant must post this parameter with the corresponding payment option’s bank code value in it.
| AMEX |
udf1 - udf5optional | String User-defined fields (udf) are used to store any information corresponding to a particular transaction. You can use up to five udfs in the post designated as udf1, udf2, udf3, udf4, udf5.Character Limit-255 | Payment Preference, Shipping Method, Shipping Address1, Shipping City, Shipping Zip Code, etc. |
ccnumoptional | varchar This parameter must contain the 13 to 19-digit card number for credit or debit cards in general. | 512***6789012346 |
ccnameoptional | varchar It is the customer's name on card. | Ashish |
ccvvoptional | varchar This parameter must contain the CVV number of the card – as entered by the customer for the transaction. | 123 |
ccexpmonmandatory | integer This parameter must contain the Expiry month that is mentioned under card validity. | 10 |
ccexpyrmandatory | integer This parameter must contain the Expiry year that is mentioned under card validity. | 2022 |
Response
In addition to the parameters in the response of a Merchant Hosted Checkout transaction with a card, PayU returns network token, network token expiry for PCI complied or PayU token & its expiry for non-PCI complied merchants.