#iRaySpace-invoices
1 messages · Page 1 of 1 (latest)
@subtle totem invoice.pay is a bit of a legacy endpoint that does things synchronously so it returns an exception if there's an error or decline or authentication required in charging the payment method
you might find it easier to just take the invoice.payment_intent directly and call confirm on that (https://stripe.com/docs/api/payment_intents/confirm or https://stripe.com/docs/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-existing on the frontend) instead of using that endpoint at all, overall, seems to work better for your use case.