#deepakkumarwizniche_67815

1 messages · Page 1 of 1 (latest)

trim craneBOT
snow ice
#

How are you going to charge them? By creating a payment intent?

sick crag
#

Yes

snow ice
#

And how did you set default payment method?

#

There's several ways to do it

sick crag
#

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?

snow ice
#

Why are you using Charges?

#

That's the legacy flow

#

Recommend using payment intents

sick crag
#

What's the difference?

snow ice
#

One is legacy

#

And not recommended anymore

#

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

sick crag
#

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

snow ice
#

Ok. And do you want a stripe-hosted payment page to collect details or you want this on your site?

sick crag
#

My site

snow ice
#

Also will you be processing a payment when they enter card details?

#

Or does that always happen later?

sick crag
#

That happens later

snow ice
#

SetupIntents set up payment methods for future usage

#

That way you can charge them later without issue

sick crag
#

Does that accept token of card?

snow ice
#

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

sick crag
#

SO

#

I will need my own FE for using saving card info?

snow ice
#

You said above you want it on your site

#

You don't need one though if you want a stripe-hosted solution

sick crag
#

Yeah i do want to use my own

snow ice
#

Yeah so the link I shared should get you all set up

sick crag
#

But i use Tokenization for credit card

snow ice
#

Like I said you run the risk of high decline rate if you aren't using setupintent