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
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 WhitelabelPayConfigurations.notificationId