#ubi
1 messages · Page 1 of 1 (latest)
handleNextAction shows the modal to perform the 3DS auth and once that's done, it should confirm the PaymentIntent.
I am confirming the payment intent in the backend, so, are you saying that I should confirmPayment using the JS SDK even thou I tried to confirm it in the backend?
Stripe.PaymentIntent.create(%{
confirm: true,
amount: tax_calculation.amount_total,
currency: "USD",
metadata: metadata,
customer: customer,
receipt_email: identity.email,
# error_on_requires_action
payment_method: args.payment_method_id,
setup_future_usage: setup_future_usage(args.payment_mode),
radar_options: %{session: args.radar_session_id},
use_stripe_sdk: true
})
All those things re happening in the backend