Authenticates the user with the provided authentication configuration. This method configures the Wallet API to allow access to user resources.
The configuration object for user authentication.
A Promise that resolves to the result of the authentication.
If the authentication configuration is invalid.
// Example usage:
const authenticationConfiguration = {
accessToken: 'user_access_token'
};
wallet.authenticate(authenticationConfiguration)
.then((result) => {
console.log('User authenticated successfully:', result);
})
.catch((error) => {
console.error('Error during user authentication:', error.message);
});
Configures the SDK with the provided configuration.
The configuration object for the SDK.
A Promise that resolves to the result of the configuration.
If the provided configuration is invalid.
// Example usage:
const sdkConfiguration = {
apiEnvironment: ApiEnvironment.TEST,
configToken: 'configToken'
};
wallet.configure(sdkConfiguration)
.then((result) => {
console.log('SDK configured successfully:', result);
})
.catch((error) => {
console.error('Error configuring the SDK:', error.message);
});
Retrieves the authentication service instance.
The authentication service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const authenticationService = wallet.getAuthenticationService();
Retrieves the authorization history service instance.
The authorization history service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const authorizationHistoryService = wallet.getAuthorizationHistoryService();
Retrieves the card service instance.
The card service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const cardService = wallet.getCardService();
Retrieves the currency exchange service instance.
The currency exchange service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const currencyExchangeService = wallet.getCurrencyExchangeService();
Retrieves the customer verification service instance.
The customer verification service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const customerVerificationService = wallet.getCustomerVerificationService();
Retrieves the deposit service instance.
The deposit service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const depositService = wallet.getDepositService();
Retrieves the payment instrument service instance.
The payment instrument service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const paymentInstrumentService = wallet.getPaymentInstrumentService();
Retrieves the profile service instance.
The profile service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage:
const profileService = wallet.getProfileService();
Retrieves the transaction history service instance.
The transaction history service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const transactionHistoryService = wallet.getTransactionHistoryService();
Retrieves the transfer service instance.
The transfer service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const transferService = wallet.getTransferService();
Retrieves the wallet setup service instance.
The wallet setup service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const walletSetupService = wallet.getWalletSetupService();
Retrieves the withdrawal service instance.
The withdrawal service instance.
If there is no valid SDK configuration or if API access is not validated.
// Example usage
const withdrawalService = wallet.getWithdrawalService();
Static
get
The main class for performing Wallet operations.