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 mandate: Mandate = await mollieClient.customers_mandates.create({
customerId: 'cst_pzhEvnttJ2',
method: MandateMethod.directdebit,
consumerName: 'John Doe',
consumerAccount: 'NL55INGB0000000000',
consumerBic: 'INGBNL2A',
signatureDate: '2018-05-07',
mandateReference: 'YOUR-COMPANY-MD13804',
});
console.log(mandate);
} catch (error) {
console.warn(error);
}
})();