#jcrypt
1 messages · Page 1 of 1 (latest)
There are no code versions of both payment links and the customer portal.
https://stripe.com/docs/payment-links
https://stripe.com/docs/customer-management/activate-no-code-customer-portal
And there are low-code versions aka Checkout and API-created customer portal sessions
Is there specific functionality that you are trying to figure out if it is available for these flows?
Sir, if I use payment link, can a retrieve stripe_customer_id to save for use when customer is trying to access portal
Yes, the subscription will still have a customer ID cus_123 that you can store and use to create customer portal sessions
OK trying to figure out how to keep user_id for app and cus_id for stripe in synce, and was hoping I could grab and write to sql table when they create a sub
For payment links you can use a client_reference_id URL parameter to set an ID that will show up on the Checkout Session that the payment link creates https://stripe.com/docs/payment-links/url-parameters#streamline-reconciliation-with-a-url-parameter
So you can create your app ID, set it as the client_reference_id in the URL, and then check the checkout.session.completed event to see what ID maps to what customer
Thank you.....I will go read up
OK noticed that the checkout.session.completed seems to be a webhook. Is there anyway to implement without having to create an event listener and doing webhooks....it seems to be my only "problem" on another server app, so was hoping I could avoid webhooks if possible
You can't really avoid webhooks in this case.
OK Is there any nonwebhook solution for creating a subscription and storing stripe_cus_id...just was hoping for cleaner setup....the last server with webhooks loses connection at time and I have to resend the events to get the server resynced with stripe
You can always just ingest the response from the creation of the subscription and then make some GET requests to the Stripe API to get whatever you're looking for. Or make the create request using expand to get the full Customer of the subscription: https://stripe.com/docs/expand
otherwise the Customer ID exists in the Subscription object, so you should get that back from the API response when you create the subscription
Thank you sir for your time....sorry that I'm a pain...just got an app ready to go and trying to implement a signup payment page quicker than the time I spent last time adding and test webhook events.....I think that may get me going