How to use the @mollie/api-client.SequenceType.first function in @mollie/api-client

To help you get started, we’ve selected a few @mollie/api-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mollie / mollie-api-node / examples / customers / create-payment-with-mandate.ts View on Github external
(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);
  }
})();