#vigneshs_60925

1 messages · Page 1 of 1 (latest)

desert spindleBOT
wary thunder
#

Hi there, yes email address is the only mandatory field for bank transfer

#

If you need to collect the complete billing address. use Address Element

golden swift
wary thunder
#

What's your PaymentIntent ID?

golden swift
#

My question is how to reterive the payment_intent on redirect url

wary thunder
#

I believe there are example code in the page showing how to retrieve the payment_intent ID from redirect URL, did you get a chance to try it out?

golden swift
#

yes i tried, but i am getting null

#

new URLSearchParams(window.location.search).get(
'payment_intent_client_secret'
)

wary thunder
#

Can you share with the complete code that your wrote?

golden swift
#

const result = await that.stripe.confirmPayment({
elements: that.creditElements,
confirmParams: {
return_url: environment.stripe.redirect_url,
},
});
that.validateStripeResponse(result, resolve);

#

private validateStripeResponse(result, resolve: (value: unknown) => void) {
if (result.error) {
this._alertService.error(
result.error.message || 'Oops Something went wrong'
);
this._loadService.stopLoading();
resolve(false);
} else {
resolve(true);
}
}