#vigneshs_60925
1 messages · Page 1 of 1 (latest)
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
As per document(https://stripe.com/docs/payments/bank-transfers/accept-a-payment?platform=web#element-submit-payment-to-stripe), In redirect url, payment_intent and payment_intent_client_secret we wil reterived, but i am getting null
What's your PaymentIntent ID?
My question is how to reterive the payment_intent on redirect url
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?
yes i tried, but i am getting null
new URLSearchParams(window.location.search).get(
'payment_intent_client_secret'
)
Can you share with the complete code that your wrote?
const result = await that.stripe.confirmPayment({
elements: that.creditElements,
confirmParams: {
return_url: environment.stripe.redirect_url,
},
});
that.validateStripeResponse(result, resolve);
redirect_url: 'http://localhost:4201/passport-dev1/#/payment',
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);
}
}