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

[Question] Request Card holder name when using PaymentSheet

Open romansorochak opened this issue 3 years ago • 5 comments

Is there any way to request the cardholder name when using Stripe.PaymentSheet ? We're using carthage version - github "stripe/stripe-ios" "21.6.0"

Screenshot 2021-10-22 at 16 30 25

romansorochak avatar Oct 22 '21 13:10 romansorochak

@romansorochak Hi, are you asking if there is a way you (the developer) can read the card holder name from a property on PaymentSheet?

porter-stripe avatar Oct 22 '21 14:10 porter-stripe

@porter-stripe No. We want to have additional text field Cardholder name on that PaymentSheet.

romansorochak avatar Oct 22 '21 15:10 romansorochak

@romansorochak ah got it! We currently don't support this, and don't have any immediate plans to add support but it may come in the future. We'll keep this issue updated if anything changes.

porter-stripe avatar Oct 22 '21 18:10 porter-stripe

So for us in order to support it we will need to go with custom approach and create our custom payment sheet ?

romansorochak avatar Oct 22 '21 19:10 romansorochak

@romansorochak starting to think about this a bit, I was wondering, why did you need this field?

ahmedg-stripe avatar Feb 03 '22 01:02 ahmedg-stripe

Hi I am also wondering about this possibility. I see that the cardholder's name is asked in your checkout page which makes your different solutions (checkout vs PaymentSheet) not completely aligned in terms of functionality. See https://checkout.stripe.dev/

Another question also, if not asked in the PaymentSheet via a text field, is it an information that you retrieve from the banks ? If yes would it be possible to provide it in the events ?

jfougere avatar Nov 16 '22 05:11 jfougere

Hi @romansorochak @jfougere sorry for the slow response on this GitHub issue, but in early 2023 we released PaymentSheet.Configuration.defaultBillingDetails, which allows you to always collect the customer's name via PaymentSheet. You can read more in our docs here. I'll be resolving this now, but please feel free to open another issue if you have further suggestions!

sfriedman-stripe avatar Dec 24 '23 06:12 sfriedman-stripe