#RafaCitec
1 messages · Page 1 of 1 (latest)
hello
I am creating a session portal
with this instructions
in a line I need CUSTOMER_ID and I don't know how get
easy way
Well, it's the ID of the Customer object you want to create the portal session for: https://stripe.com/docs/api/customers/object#customer_object-id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Do you have any existing Customer objects?
no
I have created previously
for other tasks...
checkout session
and webhook
but I haven't any function or method to manage customers
Generally you'd persist those IDs against users in your own database
And then when they authenticate, the cus_xxx ID is available in your app session
Otherwise you need to find the customer you want to create the portal session for: https://stripe.com/docs/api/customers/search
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.