#donalson-buy-btn-livemode
1 messages · Page 1 of 1 (latest)
What do you mean by subscription link exactly?
Hello how are you ?
I'm doing well, thanks for asking
i have a code in my own platform for my clients to make subscriptions
the code is working well.
but. I'm using a test link to do that
look
images
I have a checkout button
are you referring to payment link/buy button?
but i don't know where can i find or create a link for production mode. to test it
yes, the link
if you toggle the test mode button off then you'd be in live mode
donalson-buy-btn-livemode
you'll need to create the product in live mode
And in my case i'm sending to stripe the information of the subscription.
- product
metadata too
Sorry if i'm a little confused
I send to Stripe de prod_P5ZUtZvBK8MGo3 and meta data
how exactly are you sending it?
Ok I will check the link that you sent me
I'm doing a check out session
I send to stripe
- product id
- metadata (my user)
In that case, all you need is to switch your test mode API key with your live mode API key
in your code
yes
but again, you'd need to create the products/prices in live mode first
It is working very well on test mode.
but I need the link for my button for production mode.
And i don´t know hoy to create it
Sorry, I don't think I grasp your usecase or the flow you're building.
You are saying you "need a link" for your button (which is what the buy button is)
https://stripe.com/docs/payment-links/buy-button
Then you said you're using Stripe Checkout and shared code that creates a checkout session
The link is generated after your app calls the Stripe API and in the response you'd receive a URL
maybe i used a wrong word (link)
I will explaint it again. give me 1 minut
I found information in the stripe documentation
to create a :
- portal session
- checkout session
checkout session :
portal session:
okay, so you're using Checkout Sessions API in test mode
STRIPE_SECRET in your code is your test mode API key
yes, but if a change my STRIPE_SECRET keys
if I use my production keys
I have the next problem
when my client press the checkout button in my platform
i redirect him to that route
this route use sessionId information
that i have
but that route does not work on production
I don´t remember where i found this information (route) on stripe documentation
the checkout session API respond me with the sessionId
can you share a live mode example request ID?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
mmm ok i thik that i found the problem
stripe.checkout.sessions.create
hast a response with the url
i need to use that link
👍