Email Payment – PayU Documentation

Email Payments

Overview

 

The solution supports sending a payment link to a customer. All you need to do is just fire a request through merchant panel or call an API.

Here you’ll find more information on how to initiate a transaction to collect payments via e-mail.

Pre-requisites

  1. Your merchant panel login credentials.

OR

  1. Test key and salt.
  2. Live Key and salt.

Steps Involved

 

  1. Initiating transaction using Merchant Panel.
  2. Initiating transaction using API.

Initiating transaction via API

 

In order to collect payments through a link you need to call an API (create_invoice).  Email invoice can be send to the customer immediately or can be scheduled to send later.

In order to make this API call, you need to send us the following parameters:

Environment URL
Test https://test.payu.in/merchant/postservice.php?form=1 (to receive response in array format)
https://test.payu.in/merchant/postservice.php?form=2 (to receive response in json format)

 

Parameters:

Parameter Description                Sample value
key Your key provided by payu  JBiPgT
command Name of web service call  create_invoice
hash Security parameter  Formula to calculate HASH: SHA512(key|command|var1|salt)
var 1 JSON string {“amount”:”10″,”txnid”:”abc3332″,”productinfo”:”jnvjrenv”,”firstname”:”test”,”email”:”test@test.com”,”phone”:”1234567890″

,”address1″:”testaddress”,”city”:”test”,”state”:”test”,”country”:”test”,”zipcode”:”122002″,”template_id”:”14″,”validation_period”

:6,”send_email_now”:”1″}

 

Here, the input var1 parameter has to be generated in the JSON string format mentioned in the sample value string above. This string shows each parameter and its corresponding value separated by the delimiter colon (:). The parameters are also separated by the comma delimiter (,).

Following is the description of the parameters in the above mentioned string:

Parameter Description
amount Payment amount
txnid Reference id/ transaction id generated at your end.
productinfo Product description
firstname Customer’s First Name
email Customer’s Email
phone Customer’s Phone Number

Initiating transaction via Merchant Panel

 

  1. Go to URL
  2. Login to merchant Panel.
  3. On the landing page, you will find an option “New email invoice”.
  4. Fill in the mentioned details.