Skip to content

Commit

Permalink
added missing payment_method: paymentMethod.id,
Browse files Browse the repository at this point in the history
  • Loading branch information
ih-abir committed Feb 7, 2024
1 parent d906973 commit 81747ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/workers/dilmahtea-me-stripe/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const handlePOST = async (request, env, ctx) => {
const paymentIntent = await stripe.paymentIntents.create({
customer: customer.id,
payment_method_types: ['ideal'],
payment_method: paymentMethod.id,
amount: totalAmount,
currency: 'eur',
metadata: { paymentID, payment_type },
Expand Down

0 comments on commit 81747ab

Please sign in to comment.