Whitelabel Pay Implementation
Payment tools SDK to enroll into the Payment tools White Label Pay program. After successful enrollment you can read and use payment tokens. Public-private key pair, device id, enrollment and payment tokens are stored in an encrypted shared preferences file.
Parameters
Application context
Configuration object filled from merchant side
Properties
The number of tokens available in the local storage.
Property that provides the device subject associated to reference id in WhitelabelPayConfigurations. Can be null if the device is not fully enrolled.
Functions
Deactivate an active payment means, calling this func will ask the server to deactivate the payment means. It will also delete all payment tokens for the payment mean.
Function to delete a payment mean. Deleting an active mean will result in deleting all it's payment tokens as well.
Provides the status of the device State locally saved in the storage.
Provides an enrolment token Token.Enrolment to enroll a card in WhitelabelPay
Provides the list of payment means PaymentMean. The list consists of active and also inactive payment means. Deleted payment means won't be displayed in this list.
Function to retrieve the payments history overview
Provides a signed payment token Token.Payment from White Label Pay. The Token.Payment.signedToken is the signed token representation required to make a successful payment transaction.
Function to pass a received the notification data payload instance to the SDK in order to adjust the SDK state accordingly. This function should be called from FirebaseMessagingService.onMessageReceived(remoteMessage: RemoteMessage)
Calling this method will reactivate a deactivated payment mean.
Function to set the reference Id in WhitelabelPayConfigurations
Function to start refreshing tokens and and data sync with the backend. Calling this function periodically emits a new Token, as well as syncs the SDK state with the backend.
Function to stop refreshing emitting new token object in token property, as well as stopping sync polling.