#young_shabo - customer creation

1 messages · Page 1 of 1 (latest)

high creek
#

Hi, while I look into this can you share a request_id?

tidal elm
#

I can provide my development environment if needed it is hosted on repl.it

#

what is request_id

high creek
#

I was able to digest what was happening from the above snippet, thank you.

tidal elm
#

Does that just mean creating the javascript object first?

#

or do I have to hit an endpoint in order to create a customer

delicate ridge
#

there's no javascript object

tidal elm
#

and the customer would just be the object returned from the first await createCustomer function correct

delicate ridge
#

correct

tidal elm
#

okay cool. another question; for future use, how would I see if I have the same customer on my app? would I have to create some sort of authentication system for that? because I know there is such a thing as customer id

high creek
#

You'll handle this on your app.

delicate ridge
#

usually when you use Customers it's to "re-use" the information such as their saved card for faster checkout later. For that to work you need to know who the customer is in your own application, for example with a login/password

#

when you do that you can say your customer 12345 is cus_ABC in Stripe for example

#

if you don't have "profiles" and such in your app, then you don't need to use customers and you can do a one-time payments (and just not pass customer at all)

tidal elm
#

oh okay

#

im just using customers to pass a phone number value

#

because there is no phone number paramater by default in the payment intent object

delicate ridge
#

what is the phone number used for?

tidal elm
#

just so I can see contact the customer by phone if I need to

#

I just need the phone number to show up in the stripe dashboard

#

under the completed purchases list

high creek
tidal elm
#

Let me check.

#

Okay, and that would still show up on the stripe dashboard right

high creek
#

Yes, that is correct. It's best to test it on your end to see how it looks.

tidal elm
#

okay thank youy