diff --git a/src/workers/dilmahtea-me-stripe/src/index.js b/src/workers/dilmahtea-me-stripe/src/index.js index 3191282c..656f9baf 100644 --- a/src/workers/dilmahtea-me-stripe/src/index.js +++ b/src/workers/dilmahtea-me-stripe/src/index.js @@ -82,6 +82,12 @@ const handlePOST = async (request, env, ctx) => { // Create new Checkout Session for the order. // Redirects the customer to s Stripe checkout page. // @see https://stripe.com/docs/payments/accept-a-payment?integration=checkout + const paymentMethod = await stripe.paymentMethods.create({ + type: 'ideal', + ideal: { + bank: bank, + }, + }); function convertPriceToCents(price, quantity = 1) { return Math.round(price * quantity * 100);