#stripe_connect_platform
1 messages · Page 1 of 1 (latest)
hello! no, i'm afraid not, there isn't a referring website url placeholder to use, you have to input in the URL that you want it to redirect to
ok. hm. so someone is not on a paid plan and we want to give them a link that says "Upgrade". It's a Telegram Bot so we sent them the payment link and they display it.
User clicks it and it opens Stripe checkout.
We want to upgrade their account when they pay so i am redirecting the Payment Link to our website with the {CHECKOUT_SESSION_ID} param. We upgrade them. That's working great. Now, I'm not sure what to do. We cannot send them "back" to the Stripe confirmation page right? What do people do in this type of flow where one does not have access to the main site (Telegram) and we want to get them from Telegram to Stripe and back roundtrip.
Since the customer is sent to your website, you can provide them with a link/button on that page to click on and redirect them back to Telegram if they want to?
we don't have a website on this app. Its a Telegram Bot. I'm trying to not build a website and just keep it backend with Stripe Customer Portal links and Payment Links for Payment. It's an experiment.
or just a Squarespace website
for branding but headless Rails app
ok, no worries, just always checking if someone has already figured this out...I'll figure something out here. Thanks!
i'm a bit confused - do you want to redirect the user? or is it acceptable if you just show a success page? You can use the Stripe hosted confirmation page : https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-hosted_confirmation so you don't have to build a website
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Right.
But
OK, new question
I chose to put a special redirect URL on the payment link
OK, I am confused.
Two special things on the payment linke
1.) I addd ?client_reference_id
2.) I am redirecting with {CHECKOUT_SESSION_ID}
Do I need those? Maybe I can just listen for Checkout Session completed and use the client_reference_id to match up the Telegram user but don't need the custom redirect to my controller?
And then use your confirmation. Is there a :back function on your confirmation so they can get back to where they saw the "Upgrade" notice in Telegram that sent them to Stripe?
Goal: Get user back into Telegram UI after Stripe payment
Do I need those? Maybe I can just listen for Checkout Session completed and use the client_reference_id to match up the Telegram user but don't need the custom redirect to my controller?
You can just listen for checkout.session.completed event and use the client_reference_id to process the payment. You don't necessarily need the custom redirect back to your page
And then use your confirmation. Is there a :back function on your confirmation so they can get back to where they saw the "Upgrade" notice in Telegram that sent them to Stripe?
I don't recall what's the behaviour or how it looks off the top of my head, but it's something which you can test out and see