Select for Deposit
sessionSelect for Deposit
flow using the REST API as shown below.
Select for Deposit
flow:
complete
eventcomplete
event is fired when the user successfully selects a deposit method.
complete
event payload contains two primary properties:
via
- Specifies the type of deposit method selected:
external-account
- Previously linked payment method (e.g., saved card)deposit-method
- Account deposit method requiring additional setup (e.g., bank transfer)selection
- Contains the method data structurevia: "external-account"
)
When an external account is selected, the selection
property contains an external account object with the saved payment method details.
Account Deposit Method Selection (via: "deposit-method"
)
When an account deposit method is selected, the selection
property contains an object with the following structure:
account
- The account that will receive the deposited fundsdepositMethod
- The account deposit method configuration for processing the depositvia
property is deposit-method
, the user will complete their deposit through a bank transfer. The Payment Widget presents the necessary bank account details to facilitate this transfer, eliminating the need for your application to display them separately. However, the Payment Widget does not monitor for the completion of the bank transfer.
Your application may optionally implement transaction monitoring to detect when the deposit has been processed and provide real-time user feedback. This can be achieved by polling the transactions endpoint to identify when the FPS deposit is received by the account specified in the selection.account.id
property of the complete
event payload.
The following example demonstrates how to poll for incoming transactions:
cancel
eventcancel
event is fired when the user closes the Widget without selecting an external account.
error
eventerror
event is fired when an error occurs during the external account selection process.