Skip to content

Commit

Permalink
add return url for paymentIntent
Browse files Browse the repository at this point in the history
  • Loading branch information
ih-abir committed Feb 7, 2024
1 parent 81747ab commit ab726fb
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 @@ -104,6 +104,7 @@ const handlePOST = async (request, env, ctx) => {
amount: totalAmount,
currency: 'eur',
metadata: { paymentID, payment_type },
return_url: successUrl,
});

const confirmPaymentIntent = await stripe.paymentIntents.confirm(paymentIntent.id);
Expand Down

0 comments on commit ab726fb

Please sign in to comment.