Get Receiving Institutions
const banks = await saligpay.banks.getReceivingInstitutions("instapay");
banks.forEach((bank) => {
console.log(`${bank.attributes.name} (${bank.attributes.provider_code})`);
});
Bank Types
| Type | Description |
|---|
instapay | Instapay participating banks and e-wallets |
pesonet | PESONet participating banks |
Bank Response Types
interface ReceivingInstitution {
id: string;
type: string;
attributes: {
name: string;
provider: "instapay" | "pesonet";
provider_code: string;
};
}
type BankListResult = ReceivingInstitution[];
Usage Example
async function displayBanks() {
try {
const banks = await saligpay.banks.getReceivingInstitutions("instapay");
banks.forEach((bank) => {
console.log(`${bank.attributes.name} (${bank.attributes.provider_code})`);
});
} catch (error) {
console.error("Failed to fetch banks:", error);
}
}
Last modified on