#pavan-subs-webpage

1 messages · Page 1 of 1 (latest)

dusk agate
#

hello, I think there's something being mixed here, cause either PaymentIntent or SetupIntent would be required here, not both

white sail
#

Thats right. Frontend calls stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: cardElement,
billing_details: {
name: nameInput.value,
},
}
})

#

during create Subscription card payment

#

What should frontend call during payment method later

#

?

#

@dusk agate

#

ok got this

#

stripe.confirmCardSetup(
clientSecret,
{
payment_method: {
card: cardElement,
billing_details: {
name: cardholderName.value,
},
},
}
)

dusk agate
#

sorry I'm still a bit confused, what guide are you following, let's start there

#

what does this mean

What should frontend call during payment method later

white sail
#

Suppose as part of custom flow if customer like to update card details

#

on collecting card details what method frontend should call

#

and also during create subscription while updating card details what method frontend should call ?

dusk agate
#

ah gotcha, then yes you would create a SetupIntent, and call confirmCardSetup() , this collects the card details into a PaymentMethod and sets it up for future payments

white sail
#

What should we call as part of createsubscription and collecting payment details initially ? confirmCardPayment this one ?

dusk agate
#

What should we call as part of createsubscription
not sure I understand, can you explain/rephrase?

white sail
#

During initial checkout as part of customflow, how UI updates card details ?

dusk agate
#

during initial checkout, you're going to be using confirmCardPayment() after you create the Subscription, right?
again I think we're talking about different things here sorry, I'm not understanding