Skip to content

Commit

Permalink
Update StripeElementsOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xjahic committed Oct 29, 2023
1 parent 6456a18 commit 3b283da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/checkout/[courseSlug]/[courseProductId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ const Stripe = ({
}

const options: StripeElementsOptions = {
clientSecret,
appearance,
mode: 'payment',
currency: 'eur',
amount: fullAmount - (discountAmount || 0),
}

return (
Expand Down

0 comments on commit 3b283da

Please sign in to comment.