#Babu Munavarbasha

1 messages · Page 1 of 1 (latest)

broken flareBOT
keen void
#

Hi there, how can I help?

south bough
#

There are a couple of questions - as per the documentation on custom flow - i create a stripe customer and payment intent on the server and confirm the setup from ui. In the instance if the person typing the card an existing customer, I wouldnt know until they fill their details on checkout

#

would there be duplicate customer.

keen void
#

Let's start with your first question

#

is it about recognzing an existing customer based on the card details?

south bough
#

yes - based on their first name, email and phone

keen void
#

OK, are you using your own form to collect these info?

south bough
#

yes correct.

keen void
#

OK, so I assure you have a DB to store your customer data, and you want to automatically populate the existing payment method for the logged in customer so that they don't need to enter the card details again?

south bough
#

These checkouts are for guest users - we may have customers already in our db for them. I just want to be able to map them.

#

I want to make sure i dont create duplicate customers in stripe

keen void
#

OK. based on what information do you recognize if the customer is a return customer?

south bough
#

Combination of name and phone -

keen void
#

Ok, then I don't see why you need the card details if Combination of name and phone are sufficient.

south bough
#

okay may be i didnt explain well enough. These are checkout forms for people to put in their card details for a charge later option with the business. without card, we wouldnt be able to charge a customer

#

we have a mechanism to map customers to see if they are return customers.

#

i want to make sure i dont create duplicate stripe customers to charge them.

#

i am thinking - may be i create a setup intent without customer and later i create or find existing customer to store payment method

#

in stripe

keen void
south bough
#

okay thanks. second question is - when we charge a customer using off_session and authentication is required

#

its going to be an offline process. how do we notify customer to confirm. Is there any example code to confirm authentication

#

lets sayy i want to send a link to customer - would it be a payment element with client secret of the intent?

#

requiring authentication.

keen void
#

You don't need to render a paymentElement, you just need to call stripe.confirmPayment() with the client_secret and let Stripe.js to start the 3DS flow

south bough
#

okay thank you. is there any example doc link i can follow? would be really helpful.

keen void
south bough
#

okay thanks.