Skip to content

Commit

Permalink
automatically collect taxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodriguespn committed Mar 8, 2024
1 parent 0732dbe commit 21a9596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/stripe/payments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ export const useCheckoutSessionUrl = (priceId: string, userId: string, {
"checkout_sessions",
);

// For more info about the cloud function, see:
// https://github.com/invertase/stripe-firebase-extensions/blob/next/firestore-stripe-web-sdk/markdown/firestore-stripe-payments.commonsessioncreateparams.md
addDoc(checkoutSessionRef, {
price: priceId,
allow_promotion_codes: true,
automatic_tax: true,
success_url: successRedirectUrl,
cancel_url: cancelRedirectUrl
}).then((docRef) => {
Expand Down

0 comments on commit 21a9596

Please sign in to comment.