Physical Card Request
usePhysicalCardRequest
API_BAAS_PHYSICAL_CARD_REQUEST='/baas/debit-cards/physical'How to use?
import {usePhysicalCardRequest} from 'LinkerStudio/modules/baas/common/hooks';const [
sendPhysicalCardRequest,
sendPhysicalCardIsLoading,
renderSuccessView,
] = usePhysicalCardRequest()How to request a physical card?
const sendPhysicalCardRequest = async (address?: Address) => {
try {
const cardId = (cards?.length > 0 && cards[0].id) || '';
await CardsService.physicalCardRequest(cardId, address);
} catch (error) {
return error
}
};Last updated