Hooks
Description of custom hooks used in the BaaS module.
useActivateCard
The following env vars are required:
API_BAAS_ACTIVATE_CARD='/baas/debit-cards/$CARD_ID/activate'
How to activate a card?
Use the sendActivateCard function and invoke CardsService from /services/CardsService
.
import CardsService from 'LinkerStudio/modules/baas/common/services/CardsService';
const sendActivateCard = async (activeCard: PutActivateCard) => {
try {
await CardsService.activateCard({
...activeCard,
});
} catch (error) {
return error
}
};
Last updated
Was this helpful?