#Babu Munavarbasha
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
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.
Let's start with your first question
is it about recognzing an existing customer based on the card details?
yes - based on their first name, email and phone
OK, are you using your own form to collect these info?
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?
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
OK. based on what information do you recognize if the customer is a return customer?
Combination of name and phone -
Ok, then I don't see why you need the card details if Combination of name and phone are sufficient.
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
Yes, you can update a SetupIntent with a customer later https://stripe.com/docs/api/setup_intents/update?lang=ruby#update_setup_intent-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
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
okay thank you. is there any example doc link i can follow? would be really helpful.
okay thanks.