#zerosodium_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1306345565998809109
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- zerosodium_pricing-table-traffic-attribution, 1 day ago, 11 messages
yes! I do for Google Pay
And when you go to https://dashboard.stripe.com/test/settings/payment_methods do you have Google Pay turned on?
Alternatively, can you provide me a Checkout Session URL that you are testing with so I can load it and look as well?
yes!
Thanks, looking
maybe I need to pass it here? I use this API route to pass the secret to the pricing table
getCustomerSessionClientSecret: protectedProcedure.query(async ({ ctx }) => {
const user = await ctx.db.user.findUnique({
where: { id: ctx.auth.userId ?? "" },
});
if (!user) {
throw new Error("User does not have a stripe customer id");
}
const session = await stripe.customerSessions.create({
customer: user.stripe_customer_id,
components: {
pricing_table: {
enabled: true,
},
},
});
return {
clientSecret: session.client_secret,
stripe_customer_id: user.stripe_customer_id,
};
}),
Looks like Google Pay is turned off in your Dashboard.
You have it on in live mode
But off in test mode.
So flip it on in test mode and then try again
Thanks, looking.
Ah
You are using Automatic Tax here but not collecting Shipping Address: https://docs.stripe.com/payments/checkout/taxes?tax-calculation=stripe-tax#apple-pay-and-google-pay
hmm interesting - since I'm using the embedded table, what's the best way to collect the shipping address?
You can specify you want to collect shipping when you create your Pricing Table.
Then it will be collected in the Checkout Session
ahhh ok go it. TY!
weirdly enough I just changed this in live mode and test mode and not seeing a difference?
Changed what exactly?
You selected billing address only in that screenshot
You need shipping address if you want Google Pay here
oh shipping not just billing, right. seems odd but if that's the way she goes, understood
sorry about that!
All good ๐