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.
// 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.
// 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.
Retrieves the authorization history service instance.
The authorization history service instance.
Retrieves the currency exchange service instance.
The currency exchange service instance.
Retrieves the customer data verification service instance.
The customer data verification service instance.
Retrieves the customer verification service instance.
The customer verification service instance.
Retrieves the payment instrument service instance.
The payment instrument service instance.
Retrieves the user preferences service instance.
The user preferences service instance.
Retrieves the strong customer authentication service instance.
The strong customer authentication service instance.
Retrieves the transaction history service instance.
The transaction history service instance.
Retrieves the trusted entities service instance.
The trusted entities service instance.
Retrieves the virtual payment instrument service instance.
The virtual payment instrument service instance.
Retrieves the wallet checkout service instance.
The wallet checkout service instance.
Retrieves the wallet setup service instance.
The wallet setup service instance.
Retrieves the withdrawal service instance.
The withdrawal service instance.
StaticgetFunctionRetrieves the singleton instance of the Wallet class.
The singleton instance of the Wallet class.
The main class for performing Wallet operations.