#stan-trees_api
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/1239856357876957225
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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;```
Can you share with me a sample Checkout Session Id?
how can i find that?
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 ?
I cna see Google Pay and Apple Pay
Do you have a valid card in your wallets ?
Do you have real cards set in your Google/Apple Wallets ?
how do i check? or how do i set it
You need to follow Apple Google guides about settings wallets
got it, thanks
For google: https://pay.google.com/about/
oh wait
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?
No you need to first set your Google/Apple wallets
where do i set it? do you mean on stripe?
Then these payment methods will be displayed in Stripe if available
No I already sent you links above
i already have cards set in my google pay though
Are you basde in India ?
Have you made a purchase with ?
with google pay? or with stripe
Google Pay
yes
when you open https://payments.google.com/gp/w/home/paymentmethods are you seeing your payment method ?
Using the same browser you've opened the Stripe Checkout Session
yes
When you open this page: https://docs.stripe.com/elements/express-checkout-element/accept-a-payment
Are you seeing Google Pay ?
maybe its just something on my end
and when you open the Checkout Session you don't see Google Pay ?
i have another question though
yes please
i made a test checkout on the checkout page but it didnt show up on the transactions in testmode on dashboard
nope i dont get that, only the card option
Did you made a purchase ?
yes I made a test purchase
Can you share the Checkout Session Id ?