Pay By Link
The PayByLink API allows merchants to generate a secure payment link that can be shared with customers for completing transactions. The API accepts payment and customer details and returns a unique payment URL.
The merchant can perform transactions using our Pay By Link API.
A POST request must be sent over HTTPS to the following endpoint: merchantServices/api/v1/generatePayByLink
Merchant needs to set authentication token in header for each request. To generate authentication token, please refer Auth token API.
Sample Request
https://test.paymentz.com/merchantServices/api/v1/generatePayByLink
{
"authentication": {
"memberId": "13947",
"checksum": "cd67c0c11138ad899d46f8751f37b1a4",
"expirationTime": "1"
},
"merchant": {
"orderID": "qwerty459567",
"amount": "20.00",
"currency": "INR",
"contactName": "Jhon Doe",
"email": "Jhon.Doe@gmail.com",
"phone": "1234567890",
"orderDescription": "qwertyuiop"
}
}
Sample Response
{
"result": {
"code": "00026",
"description": "Your record found successfully",
"url": "https://test.paymentz.com/transaction/PayByLink?orderId=qwerty459567&authToken=a4000890-6b0e-4d3d-83f7-ca172753edae"
}
}
Hashing Rule
is supporting MD5 Cryptographic Hash for the authenticity of payment request send to the server.
Below are the description of fields used for generating checksum:
- memberId <Merchant ID as shared by >
- orderid <Unique transaction ID provided by Merchant>
- amount <Amount of transaction>
- memberkey <Secure Key that can be generated through 's dashboard>
How to generate Checksum?
Checksum has to be calculated with following combination & needs to be send along with the authentication parameters in each server-to-server request:
<memberId>|<orderid>|<amount>|<memberkey>