#pavan-subs-webpage
1 messages · Page 1 of 1 (latest)
hello, I think there's something being mixed here, cause either PaymentIntent or SetupIntent would be required here, not both
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,
},
},
}
)
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
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 ?
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
What should we call as part of createsubscription and collecting payment details initially ? confirmCardPayment this one ?
What should we call as part of createsubscription
not sure I understand, can you explain/rephrase?
During initial checkout as part of customflow, how UI updates card details ?
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