Body
The payment method to use for the deposit. Valid values are bkash, nagad.
Your unique transaction ID.
The callback URL of your website to which the customer will be redirected after the deposit with necessary information in the query string.
id, amount, payment_method and status
Example:
id=hk7ppekqfkfj&amount=100&payment_method=bkash&status=succeeded
Set of key-value pairs that you can attach to an object.
Response
The ID of the deposit request.
Your unique transaction ID.
The amount which was requested to be deposited.
The payment method used for the deposit.
The status of the deposit request.
pending - The request is pending, the customer has not yet made a payment.
succeeded - Customer has made the payment.
failed - The deposit request has failed.
cancelled - The deposit request has been cancelled by the customer.
expired - The deposit request has expired after 10 minutes.
The URL to where you will redirect the customer to pay.
Set of key-value pairs that you had attached to an object.
curl --request POST \
--url https://omnipay.page/api/v1/deposits/p2c/requests \
--header 'Authorization: Bearer <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"amount": "1000",
"payment_method": "bkash",
"merchant_id": "KJKJ22",
"redirect_url": "https://google.com",
"metadata": {
"invoice_id": "NSOIENKXNY"
}
}'
{
"id": "ettghe0woyn",
"merchant_id": "KJKJ22",
"amount": "1000",
"payment_method": "bkash",
"status": "pending",
"metadata": {
"invoice_id": "NSOIENKXNY"
},
"redirect_url": "https://omnipay.page/api/v1/payments/hk7ppekqfkfj"
}