Generate a checkout URL
Generate a one-time checkout url for your customer.
The checkout URL is only valid for one-time use only
URI
POST
Parameters
Header
Authorization
| set value to |
Body Param
business_id
| Merchant Business ID |
customer_firstname
| Customer's first name |
customer_lastname
| Customer's last name |
customer_phone_number
| Customer's phone number |
customer_email
| Customer's email address |
fee_bearer
| Specifies who would bear the transaction fee can only be a customer or business. |
prefered_payment_method
| Specifies the payment method for the checkout, this is set to |
shipping_fee
| Shipping fee, set value to zero (0) if this is not applicaple. |
amount
| Specifies the exact amount a virtual account should receive |
line_items
| A list of objects that specifies the item(s) the customer is about to pay for e.g: |
discount
| An object that specify the discount(s) on the item(s) the customer is about to pay for, the value should be set to zero (0) if discount no is applied e.g: |
tax
| Tax objects specify the tax on the item(s) the customer is about to pay for, the value should be set to zero (0) if tax no is applied e.g: |
customer_ref
| A customer reference. Refers to the customer that made the checkout. |
metadata.customer
| Holds customer when customer details is different from the previously saved info. e.g |
The customer will only be allowed to pay the exact amount, any other amount will be rejected.
Sample request
Duplo Response
Once the request is done abstract the checkout_url gotten from the response and append the following
type = payment/bnpl (note this is dependent on the type of transaction that was initiated)
callback_url
cancel_url
Sample URL:
You would have to redirect the customer to the constructed URL in order for the customer to complete the transaction. When the customer transaction status is confirmed the customer will be redirected to your site or to the redirect URL you specified when generating the checkout URL.
Last updated