#kashi3029

1 messages · Page 1 of 1 (latest)

unreal daggerBOT
ionic thorn
#

Because they have credit, the credit will offset the price and he will end up not paying, hence there is no PaymentIntent

#

That's expected

astral owl
#

So how can I confirm payment

#

stripe.confirmPayment({
elements,
clientSecret,
confirmParams: {
// Make sure to change this to your payment completion page
return_url: configData?.returnUrl,
},
});

#

in this funtion I will need client secret to confirm paymenr

ionic thorn
#

You don't. There is no payment to made at this time.

#

You can consider to collect a SetupIntent

#

then use the confirmed SetupIntent to take the PaymentMethod, to start the Subscription

astral owl
#

can I call webhook event from frontedn side?

ionic thorn
#

What do you mean? You can't call a webhook event

#

That's Stripe send webhook event to your backend