Skip to content

Commit

Permalink
test for ideal payment
Browse files Browse the repository at this point in the history
  • Loading branch information
ih-abir committed Feb 7, 2024
1 parent 8892385 commit 745c765
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/workers/dilmahtea-me-stripe/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const handlePOST = async (request, env, ctx) => {
price,
tax,
payment_type,
stripeToken,
bank,
locale,
origin_url,
success_url,
Expand Down Expand Up @@ -83,9 +83,9 @@ const handlePOST = async (request, env, ctx) => {
// 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: 'card',
card: {
token: stripeToken,
type: 'ideal',
ideal: {
bank: bank,
},
});

Expand Down

0 comments on commit 745c765

Please sign in to comment.