#jcrypt

1 messages · Page 1 of 1 (latest)

hasty ruinBOT
fresh storm
#

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?

hasty ruinBOT
rancid mason
#

Sir, if I use payment link, can a retrieve stripe_customer_id to save for use when customer is trying to access portal

fresh storm
#

Yes, the subscription will still have a customer ID cus_123 that you can store and use to create customer portal sessions

rancid mason
#

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

fresh storm
#

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

rancid mason
#

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

orchid pier
#

You can't really avoid webhooks in this case.

rancid mason
#

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

orchid pier
#

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

Learn how to reduce the number of requests you make to the Stripe API by expanding objects in responses.

rancid mason
#

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