Bank Transfer
PF Integration option
Payment flow
- The customer initiates a payment.
- The merchant sends a payment request to MerchantPay.
- MerchantPay sends a response with the
formobject containingactionparameter with a link to the payment page. - The merchant redirects the customer to the URL specified in the
form.actionfield from MerchantPay response. - The customer makes a payment.
- Once the payment is completed, the customer is redirected to the page specified in
return_urlin the payment request. - MerchantPay sends a webhook notification with the payment status to the merchant. The merchant may also request the payment status from MerchantPay with the status query.
- The merchant displays the payment status to the customer.
Payment
Request
Info
This integration option only supports INR currency.
Send a payment request with the following additional parameters:
|
|||||||||||||||||||||||||||||||||||
Request example
{
"request": {
"amount": 20000,
"currency": "INR",
"description": "description",
"return_url": "return_url",
"test": true,
"customer": {
"first_name": "John",
"last_name": "Doe",
"city": "Bangalore",
"state": "KA",
"zip": "560002",
"phone": "1234567891",
"country": "IN",
"email": "john@example.com",
"address": "10 Sampige Road"
},
"method": {
"type": "bank_transfer"
}
}
}
Response
The response section will have parameters copied from the request. Additionally, you'll get the form object with a URL to the payment page. Redirect the customer to the URL specified in form.action.
Response example
{
"transaction": {
"uid": "c4af9ca3-daf3-40cf-a19d-22c501e530d7",
"type": "payment",
"status": "pending",
"amount": 20000,
"currency": "INR",
"description": "description",
"created_at": "2024-02-07T10:04:00Z",
"updated_at": "2024-02-07T10:04:01Z",
"method_type": "bank_transfer",
"receipt_url": "https://backoffice.universepay.eu/customer/transactions/c4af9ca3-daf3-40cf-a19d-22c501e530d7/9e63423487284dc87e9104489a86174c07ba08ad4f014fdc10f66d1f85d1a27b",
"payment": {
"status": "pending",
"gateway_id": 3698,
"ref_id": "1548e1ca-0d7c-4552-8139-728a04ccd6f5",
"message": "Transaction was initialized"
},
"bank_transfer": {
"type": "bank_transfer"
},
"customer": {
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com",
"country": "IN",
"city": "Bangalore",
"zip": "560002",
"address": "10 Sampige Road",
"phone": "91123456789",
"state": "KA",
"ip": null
},
"manually_corrected_at": null,
"message": "Transaction was initialized",
"test": true,
"billing_address": {
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com",
"country": "IN",
"city": "Bangalore",
"zip": "560002",
"address": "10 Sampige Road",
"phone": "91123456789",
"state": "KA"
},
"additional_data": {
"payment_method": {
"type": "alternative"
}
},
"gateway": {
"iframe": false
},
"form": {
"action": "redirect-url",
"method": "GET",
"fields": []
}
}
}