#daniel-terminal-overcapture
1 messages · Page 1 of 1 (latest)
That makes sense as a workaround flow. Looking in to if you can restrict to those brands otherwise
I cannot test this flow now but once you have collected the payment method and get the PaymentIntent back, you should be able to check the attached payment_method which should have a card property with a brand property https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-brand
So you can check if that is one of the supported card brands
I can double check but as far as I know the paymentMethod isn't attached to the paymentIntent until after processPayment is called. And in the case that over capture is not supported calling processPayment will make an authorization on the card that can't be used to collect a tip.
Please double check if you can. I can't test at the moment sadly. The documentation is a bit ambiguous on how it is associated but it sounds like it might already be in that field.