Hooks
Description of custom hooks used in the BaaS module.
useActivateCard
API_BAAS_ACTIVATE_CARD='/baas/debit-cards/$CARD_ID/activate'How to activate a card?
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