#deepakkumarwizniche_67815
1 messages · Page 1 of 1 (latest)
How are you going to charge them? By creating a payment intent?
Yes
i didn't yet. I need help in that as well. How to do that?
Currently using $charge = \Stripe\Charge::create([ for payments, I want to setup customer with default payment card and use this
Can you explain how can I add default payment for customer using token first and then do the payment?
What's the difference?
One is legacy
And not recommended anymore
Recommend you start with this flow: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
But can you tell me more what the whole payment flow will look like from start to end?
So I can provide a more specific recommendation
Yeah
So once the customer enters payment info in their profile in our platform, it should get tokenized and sent to Stripe as default payment. When they want to make multiple invoices, payment, they can just click pay and it would use their default card and apply the payment
Ok. And do you want a stripe-hosted payment page to collect details or you want this on your site?
My site
Also will you be processing a payment when they enter card details?
Or does that always happen later?
That happens later
Gotcha. In that case, recommend you use this guide: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
SetupIntents set up payment methods for future usage
That way you can charge them later without issue
Does that accept token of card?
You shouldn't do it that way
You should use a setupintent
If a card isn't set up properly for future usage, you risk high decline rate
You said above you want it on your site
You don't need one though if you want a stripe-hosted solution
Yeah i do want to use my own
Yeah so the link I shared should get you all set up
But i use Tokenization for credit card
Like I said you run the risk of high decline rate if you aren't using setupintent