Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firestore Stripe Payments Does Not Collect Address as Expected #615

Open
bigshirtjonny opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@bigshirtjonny
Copy link

Bug report

  • Extension name: firestore-stripe-payments

Describe the bug

collect_shipping_address: true is not working as expected. I have a document in my products collection called shipping_countries that has an array field called allowed_countries that has ["US","CA"] in it. Then when the website redirects to Stripe there is no place in Stripe to collect the shipping address.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

const checkoutSessionRef = doc(collection(db, "customers", user.uid, "checkout_sessions"));
try {
await setDoc(checkoutSessionRef, {
mode: "payment",
collect_shipping_address: true,
price: priceData,
success_url: window.location.origin,
cancel_url: window.location.origin + "/CoffeeBlendBuy?id="+new URLSearchParams(window.location.search).get('id'),
});

Expected behavior

I expect the stripe portal to have a shipping address field

System information

  • OS: macOS
  • Browser: Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant