#Rahim Dobani

1 messages · Page 1 of 1 (latest)

quartz sealBOT
dusky panther
#

Hi there!

#

What do you mean by "update card attach"?

viscid rose
#

yess

#

I want to update card that is attach to a customer

#

one more question is card element deprecated?

#

or soon to be deprecate?

dusky panther
#

I want to update card that is attach to a customer
So the customer already has a saved card, and you want to update it? What exactly do you want to update?

#

one more question is card element deprecated?
Yes, we recommend using Payment Element which is more powerful. But the Card Element still works.

viscid rose
#

I have this ui. when user put all card detail i just need to attach this card to existing user how this is possible.

#

i am using payment element

dusky panther
#

I'm guessing you are creating a PaymentIntent?

viscid rose
#

yess

#

But is other option instead of paymentIntent?

dusky panther
viscid rose
#

const card = await stripe.customers.createSource(
'cus_9s6XGDTHzA66Po',
{source: 'tok_mastercard'}
);

#

how to use this api using payment element?

dusky panther
#

This is a very old integration that we don't recommend using. You cannot use this with the Payment Element.