You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I was struggling with this as well. You need to create a doc in your configuration collection (default is 'configuration') with Document ID = shipping_countries. The field in that document should be named allowed_countries, type array of strings. Then add the country abbreviations to that array, such as US
Bug report
Describe the bug
collect_shipping_address: true
is not working as expected. I have a document in my products collection calledshipping_countries
that has an array field calledallowed_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
The text was updated successfully, but these errors were encountered: