#SteveAlopex
1 messages · Page 1 of 1 (latest)
Hi there, is this a question about how to get phone number from a checkout session?
Yeah so in the payment dashboard its hard to fine unless you look at the checkout.session.completed json
its confusing our sales team
Do you have a checkout session ID that I can take a look
Got it, I can see that the phone number is already included in the customer_details
So you can write some code to retrieve it from the customer session object.
Theres no like setting in the the stripe dashboard to automatically add it?
Let me try to understand your requirement, so you want to automatically create a customer from a checkout session with all the customer_details collected in the checkout page?
If it would be possible, like i do have a smartsheet set up to collect data via zapier but really i just need the phone number to show up somewhere on the page in stripe for the sales associate when they call the customer after they use checkout
You can set customer_creation to always https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-customer_creation so that the Checkout Session will always create a Customer when a Session confirmation is attempted.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Perfect! exactly what I needed