Payment Initiation
Last updated
Last updated
Good to know: payment initiation is responsible for bank payment support.
For initialising the payment initiation flow, you will need to get the payment id and pass it to the SDK. The description of how to get a payment id can be found here.
Firstly, you will need to integrate kevin. API and fetch payment ID. Instructions on how to do it can be found here:
PaymentSessionConfiguration has multiple settings to tackle:
preselectedCountry
- preselects country in our prebuilt UI. If not specified, the default selection is based on the SIM card. If the SIM card information is unavailable, it uses the device locale. If both are unavailable, it selects the first country from your country filter.
disableCountrySelection
- uses only preselected country and does not allow to change it
countryFilter
- allows only certain countries to be supported
bankFilter
- allows to filter banks and show only selected ones to user. It accepts list of bank ids that should be show to user.
preselectedBank
- preselects bank in our prebuilt UI
skipBankSelection
- skips bank and country selection and redirects user to the bank SCA immediately
skipAuthentication
- allows users to skip the SCA bank step and proceed directly to the payment confirmation. Bank payment needs to be initialised with an account access token. See reference here.
Call startPayment()
method and wait for the result.