Skip to content

Architecture

Mohamed Osman edited this page Oct 1, 2019 · 4 revisions

Stash! Android SDK is made of the following components:

Public API

Currently, Stash! SDK provides the ability to exchange credit card data, SEPA data, or PayPal account for an alias that can be used by the merchant backend to trigger payments. This is exposed through RegistrationManager class, and CreditCardData, SepaData, and BillingData models.

Data collection UI components

Data collection UI components are ready to use, PSP-aware components, that require only the appropriate date from the user to use a specific payment method. By using UI components, developers completely remove code coupling to the different PSPs and receive a ready-to-use payment alias from the UI component. Each Integration supplies its own set of Data collection UI components.

Core backend communication and handling logic

The core component of the Stash! SDK contains logic that is responsible for communicating with Stash! SDK backend to request alias creation, update alias and provide PSP specific data that is then handed over to PSP Module

Modular PSP communication and handling logic (Integrations)

PSP Modules contain the logic to communicate with a specific PSP, and also provide UI components that collect necessary data from the user. PSP Modules (Integrations) also facilitate the last step of communication flow which is delivering the PSP Alias to the backend.

Clone this wiki locally