#Suren-save-payment-details

1 messages · Page 1 of 1 (latest)

true siren
sour path
#

can I achieve some result through this method

true siren
#

Hello! You're using Checkout and you want to save the payment method to the Customer object, right?

sour path
#

honestly, I don’t know how best to save and then pay with one click

true siren
#

If you're using Checkout in mode: 'payment' then that is the way to do it

#

It'll handle auth/3DS, process the initial payment and save the card to the Customer object

sour path
#

if i put setup will it save my map?

#

and how to pay externally with a tethered card

true siren
#

if i put setup will it save my map?
Not sure what you mean here?

sour path
#

for example, I already have an attached card, but I want to pay through another card, how can this be done

true siren
#

Are you using Checkout? Is it a one-time payment?

#

How are you currently integrated? The answer depends on a lot of factors!

sour path
#

look I found setupIntent here

torn kestrel
#

As ynnoj mentioned, the flow you're looking for is going to depend on the type of integration you're using. You mentioned setup intents, are you working directly with these objects?

sour path
#

i just don't understand the difference between these methods

#

I want to save the user's card for further payment by clicking

torn kestrel
#

Those are very different. The first one is creating a Setup Intent, the second is creating a source. Have you gone through any of our docs on how to save payment methods for future use? I'm not sure if you're trying to save the card during a payment or not, so I don't which one is the best fit for your scenario.

Saving during payment:
https://stripe.com/docs/payments/save-during-payment
Saving a card without making a payment at the same time:
https://stripe.com/docs/payments/save-and-reuse

Learn how to save payment details during a payment.

Learn how to save card details and charge your customers later.

sour path
#

no, I just need to save the card data at this moment and that's it

torn kestrel
#

That's the second link then.

sour path
#

but it is possible to do it without session.checkout

#

setupIntent ?

torn kestrel
#

Yes, select the 'Custom payment flow' at the top of that doc to see the Setup Intent flow.

sour path
#

thanks, can I have one more question

torn kestrel
#

always

sour path
#

see, when paying, I want to offer either payment with an existing card or with a new card

#

if I pass the customer id to paymentIntetn
will not there be an automatic charge

torn kestrel
#

No. You will still need to tell us which payment method to charge, as shown in Step 7 of the previously linked doc which discusses how to charge a saved payment method.

sour path
#

aaaa everything is clear
and yes i will try to get a list of all attached cards but i think i don't get what i expect

#

there is no information about which card is attached

flint heath
#

@sour path Not sure what you mean, the next line of the data you showed is payment_method: pm_123... which is the payment method associated with that setup intent

What exactly are you trying to do thats not working as you expect?

sour path
#

I want to get a sheet of anchor cards

flint heath
#

What are anchor cards?

sour path
#

linked cards

flint heath