Error Handling
All SDK calls return Promises, so the usual try/await/catch works:
try {
await giftmeMakePayment({ orderToken });
} catch (err) {
console.error('Payment failed:', err);
// fall back to card form, show toast, etc.
}
All SDK calls return Promises, so the usual try/await/catch works:
try {
await giftmeMakePayment({ orderToken });
} catch (err) {
console.error('Payment failed:', err);
// fall back to card form, show toast, etc.
}