Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(async () => {
try {
const payment: Payment = await mollieClient.customers_payments.create({
customerId: 'cst_6ruhPN4V5Q',
amount: {
currency: 'EUR',
value: '10.00',
},
description: 'Order #12345',
sequenceType: SequenceType.first,
redirectUrl: 'https://webshop.example.org/order/12345/',
webhookUrl: 'https://webshop.example.org/payments/webhook/',
});
console.log(payment);
} catch (error) {
console.warn(error);
}
})();