#chirp
1 messages ยท Page 1 of 1 (latest)
Hi, how can we help?
Hi! Thanks for asking!
I am struggling with what must be a very basic question.
I have a product and I have created a link so that people can go pay with the link. Its actually that they can subscribe.
I am making a webhook to be able to listen to the subscription events ... but im not clear on how I decorate the link with the user information that can then be relayed back to me when they subscribe (or unsubscribe).
like how do I send a user to your UI and get notified when they complete what they need to complate?
What you described is Payment Link and there is Checkout which is similar and support the function of marking some additional data
Any chance you can use Checkout? It requires some API calls
API calls to stripe? Would I need to have any "secret" information? This is a serverless lamda/s3 build so some things I can easily do and others ... not so much ๐
in your lambda I think you can call Stripe API as any backend, right?
yeah i should be able to.
Yes to call Stripe API it needs a Secret Key
~~Let's forget Checkout. Sorry I just figured it out PaymentLink can also have metadata: https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-metadata~~
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Wait, but you need the information to be different per customer, correct?
yes.
different per customer.
so a user decides to subscribe. They go to stripe and pay. I get a web hook notification and account features are unlocked for them. thats the thinking.
Okie, then you need a Checkout Session. Please start here: https://stripe.com/docs/payments/accept-a-payment
And when you create a Checkout Session for 1 customer, set up its metadata: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It can be a dictionary of free value
More about metadata: https://stripe.com/docs/videos/developer-foundations?video=metadata&lang=java