#zerosodium_code

1 messages ยท Page 1 of 1 (latest)

autumn roostBOT
#

๐Ÿ‘‹ 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.

bold grail
#

Hello

#

Do you have a live card in your wallet on the device you are testing with?

heady cloak
#

yes! I do for Google Pay

bold grail
#

Alternatively, can you provide me a Checkout Session URL that you are testing with so I can load it and look as well?

bold grail
#

Thanks, looking

heady cloak
#

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,
    };
  }),
bold grail
#

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

bold grail
#

Thanks, looking.

#

Ah

heady cloak
#

hmm interesting - since I'm using the embedded table, what's the best way to collect the shipping address?

bold grail
#

You can specify you want to collect shipping when you create your Pricing Table.

#

Then it will be collected in the Checkout Session

heady cloak
#

ahhh ok go it. TY!

#

weirdly enough I just changed this in live mode and test mode and not seeing a difference?

bold grail
#

Changed what exactly?

#

You selected billing address only in that screenshot

#

You need shipping address if you want Google Pay here

heady cloak
#

oh shipping not just billing, right. seems odd but if that's the way she goes, understood

#

sorry about that!

bold grail
#

All good ๐Ÿ™‚