stripe-android icon indicating copy to clipboard operation
stripe-android copied to clipboard

[Feature] Payment Sheet name field and pay button listener access

Open onirban27 opened this issue 2 years ago • 3 comments
trafficstars

I need to match the card holder name with the booking person name and decide he can pay or not. I am unable to find any documentation regarding this. Is this available in the SDK? If not any other way to achieve this?

onirban27 avatar Sep 20 '23 03:09 onirban27

You can't retrieve the PaymentMethod object from PaymentSheet, but you can set up a custom radar rule and use the cardholder_name attribute to block names

seanzhang-stripe avatar Sep 20 '23 11:09 seanzhang-stripe

You can't retrieve the PaymentMethod object from PaymentSheet, but you can set up a custom radar rule and use the cardholder_name attribute to block names

You're talking about blocking specific names. But i want to continue with the payment if my product buyer name matches with the card holder name. I couldn't find any options in the custom radar rules.

onirban27 avatar Sep 27 '23 16:09 onirban27

You can also use the same cardholder_name attribute to create a custom Radar Allow Rule. However, you would need to maintain a list of cardholder names for comparison.

seanzhang-stripe avatar Sep 28 '23 02:09 seanzhang-stripe