#att89
1 messages ยท Page 1 of 1 (latest)
Can you share the payment intent ID (pi_xxx) that 3DS was triggered?
Yes, the payment intent ID is pi_3NcKbtRa36GjVakc1lBMN4ey for the account acct_1NTOd4Ra36GjVakc
In https://dashboard.stripe.com/logs/req_B0nuUQZgYVYNac, the request didn't set off_session to true. Only when off_session is set to true, Stripe will then inform the card issuer that customer is not in session to perform 3DS: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-off_session
OK, thank you, so I need to set confirm and off_session both to true for the future usage. Can I change this for this certain payment intent, so that it will be triggered automatically?
In your Payment Intent request, you can set confirm and off_session according to your use case optionally
confirm and off_session: true should only be set if you have payment_method set in the request
I'm using Java SDK, this is now my code:
PaymentIntentCreateParams.Builder intentParams = PaymentIntentCreateParams.builder()
.setCurrency("eur")
.setConfirm(true)
.setOffSession(true)
.setAmount(charge.calculate())
.setApplicationFeeAmount(applicationFee)
.setPaymentMethod(paymentMethodID)
.setReceiptEmail(customerEmail)
.addAllPaymentMethodType(setupIntent.getPaymentMethodTypes());
This code looks right to me
OK, thank you very much
No problem! Happy to help ๐
Sorry, I have one more question, because now I want to trigger a new payment intent with this setting. Can I somehow cancel or delete the old one, so the customer can not release it anymore and so not will be charged twice?
You may cancel the Payment Intent since pi_3NcKbtRa36GjVakc1lBMN4ey is still in requires_action status. Canceling the payment intent will stop any action being performed: https://stripe.com/docs/api/payment_intents/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you very much!