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 customerId = 'cst_pzhEvnttJ2';
const payment: Payment = await mollieClient.customers_payments.create({
amount: { value: '10.00', currency: 'EUR' },
description: 'Recurring payment',
redirectUrl: 'https://example.org/redirect',
webhookUrl: 'http://example.org/webhook',
metadata: { orderId: 'Order #23' },
customerId,
sequenceType: SequenceType.recurring,
});
console.log(payment);
} catch (error) {
console.warn(error);
}
})();