#att89

1 messages ยท Page 1 of 1 (latest)

sacred micaBOT
gilded leaf
#

Can you share the payment intent ID (pi_xxx) that 3DS was triggered?

willow jackal
#

Yes, the payment intent ID is pi_3NcKbtRa36GjVakc1lBMN4ey for the account acct_1NTOd4Ra36GjVakc

gilded leaf
willow jackal
#

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?

gilded leaf
#

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

willow jackal
#

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());
gilded leaf
#

This code looks right to me

willow jackal
#

OK, thank you very much

gilded leaf
#

No problem! Happy to help ๐Ÿ˜„

willow jackal
#

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?

gilded leaf
willow jackal
#

Thank you very much!