#stan-trees_api

1 messages ยท Page 1 of 1 (latest)

limpid riverBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

twilit vortexBOT
strange scaffold
#

heres my code for reference

const product = await stripe.products.create({
        name: 'My Product',
    });

    const price = await stripe.prices.create({
        product: product.id,
        unit_amount: amount*100, // $50.00
        currency: 'usd',
    });

    const session = await stripe.checkout.sessions.create({
        line_items: [
            {
                price: price.id,
                quantity: 1,
            },
        ],
        mode: 'payment',
        success_url: 'https://discord.gg/DphWdkkUcm',
        cancel_url: 'https://discord.gg/DphWdkkUcm',
    });

    return session.url;```
kindred yew
#

Can you share with me a sample Checkout Session Id?

strange scaffold
#

how can i find that?

kindred yew
#

You can log the object session, e.g. console.log(session.id)

#

or share with me the session url

#

and what payment method is missing ?

kindred yew
#

I cna see Google Pay and Apple Pay

strange scaffold
#

oh

kindred yew
strange scaffold
#

i cant see it on my end

#

thats weird

kindred yew
kindred yew
strange scaffold
kindred yew
#

Do you have real cards set in your Google/Apple Wallets ?

strange scaffold
#

how do i check? or how do i set it

kindred yew
#

You need to follow Apple Google guides about settings wallets

strange scaffold
#

got it, thanks

kindred yew
strange scaffold
strange scaffold
#

i thought u meant within stripe

#

i mean i have a real card set in my google pay, but why would that affect how the checkout page is on stripe?

kindred yew
#

No you need to first set your Google/Apple wallets

strange scaffold
#

where do i set it? do you mean on stripe?

kindred yew
#

Then these payment methods will be displayed in Stripe if available

kindred yew
strange scaffold
#

i already have cards set in my google pay though

kindred yew
#

Are you basde in India ?

strange scaffold
#

nope

#

us

kindred yew
strange scaffold
#

with google pay? or with stripe

kindred yew
#

Google Pay

strange scaffold
#

yes

kindred yew
#

Using the same browser you've opened the Stripe Checkout Session

strange scaffold
#

yes

kindred yew
#

Are you seeing Google Pay ?

strange scaffold
#

yes

kindred yew
kindred yew
#

Weired ๐Ÿค”

strange scaffold
#

maybe its just something on my end

kindred yew
#

and when you open the Checkout Session you don't see Google Pay ?

strange scaffold
#

i have another question though

kindred yew
kindred yew
strange scaffold
#

i made a test checkout on the checkout page but it didnt show up on the transactions in testmode on dashboard

strange scaffold
strange scaffold
#

yes I made a test purchase

kindred yew
#

Can you share the Checkout Session Id ?