-
Notifications
You must be signed in to change notification settings - Fork 0
UI Components Overview
UI components are ready-to-use screens for payment method selection and entry. Apart for being an out of the box solution for getting payment method data, they completely abstract the need to adapt the data gathering to different PSPs. This is achieved by separating the registration flow responsibilities between the core library module and PSP integration modules.
The SDK's public API exposes a method called registerPaymentMehodUsingUi. This method returns all the information a developer needs to start making payments without any further interaction needed.
Once the developer calls the registerPaymentMehodUsingUi method, a payment method picker screen is shown.
This screen is populated with all payment methods that included PSP integration modules support.
Once the user picks the desired method, the core asks PSP integration module to show specific method UI, which the user then fills with their method data (i.e. Credit card number, expiry date, etc.)
With this data, the PSP module can now ask the PSP for a concrete alias and then return this alias to the third-party developer for further usage.

Note that this is applicable for Credit Card, SEPA and PayPal alias using Braintree Vault. Other payment methods might require specific or more complex flows which will be described on a case by case basis.