Transfer
useTransfer
The following environment variables are required:
API_BAAS_INTERNAL_TRANSFER='/baas/transfer-internal'
API_BAAS_TRANSFER_ACH='/baas/transfer-ach'How to transfer?
Use the
initiateTransferInternalfunction, and invokeTransferServicefrom/services/TransferServicefor internal accounts:
import TransferService from 'LinkerStudio/modules/baas/common/services/TransferService';
const initiateTransferInternal = async (
transferInternalDetails: PostTransferInternalDetails,
) => {
await TransferService.postTransferInternal(transferInternalDetails);
} catch (error) {
return error
}
};Use the
initiateTransferAchfunction, and invokeTransferServicefrom/services/TransferServicefor ACH transfers:
import TransferService from 'LinkerStudio/modules/baas/common/services/TransferService';
const initiateTransferAch = async (
transferInternalDetails: PostTransferInternalDetails,
) => {
await TransferService.postTransferAch(transferInternalDetails);react
} catch (error) {
return error
}
};Last updated
Was this helpful?