Activates a prepaid PHYSICAL card
UUID based Card id.
Optional
request: CardActivationRequestThe request contains the required fields for activating the card.
A Promise that resolves to the retrieved card.
If the HTTP request fails.
// Example usage:
cardService.activate()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error activating card.`);
});
Create a prepaid card.
The request containing card creation parameters.
A promise that resolves to the newly added card.
If the HTTP request fails.
// Example usage:
cardService.create()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error creating card.`);
});
This endpoint provides detailed information about specific Card by cardId.
UUID based Card id.
Optional
include: CardIncludesParam[]List of CardIncludesParam properties in the response.
A Promise that resolves to the retrieved card.
If the HTTP request fails.
// Example usage:
cardService.get()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching card.`);
});
Retrieves a list of all customer cards. The result list can be filtered by card status and card type.
Optional
parameters: CardParametersThe parameters for filtering the customer's cards.
A Promise that resolves to the retrieved card list.
If the HTTP request fails.
// Example usage:
cardService.getAll()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching cards.`);
});
Card sensitive information can be retrieved via this endpoint.
UUID based Card id.
Optional
scaDetails: ScaAuthenticationEventRequestThe SCA details for retrying the wallet operation.
A Promise that resolves to the retrieved card sensitive details.
If the HTTP request fails.
// Example usage:
cardService.getDetails()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching card sensitive details.`);
});
Retrieves card details url to show them for non PCI DSS compliant cases.
UUID based Card id.
Optional
language: stringLanguage in which to show details. Default is en_US.
Optional
scaDetails: ScaAuthenticationEventRequestThe SCA details for retrying the wallet operation.
A Promise that resolves to cards details url.
If the HTTP request fails.
// Example usage:
cardService.getDetailsUrl()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error getting card details url.`);
});
Retrieves eligible programs for a customer.
A Promise that resolves to the retrieved program list.
If the HTTP request fails.
// Example usage:
cardService.getPrograms()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching card eligible programs.`);
});
Retrieves card view pin url for non PCI DSS compliant cases.
UUID based Card id.
Optional
language: stringThe language in which to show details. Default is en_US.
Optional
scaDetails: ScaAuthenticationEventRequestThe SCA details for retrying the wallet operation.
A Promise that resolves to cards details url.
If the HTTP request fails.
// Example usage:
cardService.getViewPinUrl()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error getting card view pin url.`);
});
Resets the verification attempt counters for both PIN/CVV on a prepaid card. It clears failed attempts, restoring the card's ability to authorize transactions.
UUID based Card id.
Contains the needed information for resetting card verification attempts.
A Promise that resolves to the retrieved response.
If the HTTP request fails.
// Example usage:
cardService.resetVerificationAttempts()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error resetting card verification attempts.`);
});
The endpoint enables updating a card’s state like status and PIN.
UUID based Card id.
The fields submitted in this object will update the existing values for the
Optional
scaDetails: ScaAuthenticationEventRequestThe SCA details for retrying the wallet operation.
A Promise that resolves to the retrieved card.
If the HTTP request fails.
// Example usage:
cardService.update()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error updating card.`);
});
Static
getRetrieves the singleton instance of the CardService class.
The singleton instance of the CardService class.
// Usage:
const CardService = CardService.getInstance();
Service class for cards operations.