Error Handling
Each function would throw an Error if the request fails. Always ensure to handle exceptions appropriately.
try {
const wallet = await boomPay.payments.createIntent({
amount: 5,
failureUrl: 'https://your-failure-url.com',
label: 'Payment Label',
});
} catch (error) {
console.error("Error creating payment intent:", error);
}