Redirect Flow (low-code)
The redirect flow does a fullscreen redirect for the customer to complete their order. The redirect flow is an alternate flow to the default modal mode that utilizes event handler callbacks for communication and instead directs the customer to the merchant-provided order_success_url or order_close_url with applicable parameters appended.
When redirect is passed to the type field in the mode object accompanied with the order_success_url and the order_close_url in the Order Object, the customer will be led to a fullscreen redirect that opens the BNPL widget on initialization.
How to handle redirect flow
The customer will go through the widget as usual and based on if the customer completes the widget successfully be directed to the order_success_url or else be directed to the order_close_url as provided by the merchant on initialization.
Successful Completion (onSuccess)
The following parameters will be automatically appended to the order_success_url. Ensure that the backd_order_id gets stored on your system for later use with BNPL API.
| Parameter Key | Description |
|---|---|
backd_order_id | The unique identifier that Backd generates for a successful customer order. |
merchant_order_id | This is the unique identifier that the merchant shared to start the order. |
URL example:
https://www.merchant.website.com/success?backd_order_id=hvsyvs7377w7828&merchant_order_id=JKLMO4321
Close widget before completing (onClose/onFail)
The following parameter will be automatically appended to the order_close_url.
| Parameter Key | Description |
|---|---|
message | A message that describes how or why a customer has exited the widget before completing. |
URL example: