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

Can you expose `billingAddressCollectionLevel` for PaymentSheet.Configuration

Open MrShiY opened this issue 4 years ago • 2 comments

SDK version: 21.5.1 We are using PaymentSheet UI to do a payment. Our requirement is that user must input card address, zip, etc. But billingAddressCollectionLevel is not public, how can I set it for PaymentSheet?

Screen Shot 2021-05-31 at 1 00 35 PM

MrShiY avatar May 31 '21 05:05 MrShiY

Making this property part of the public API is on our roadmap :) We will update this ticket when it's released

csabol-stripe avatar Jun 02 '21 23:06 csabol-stripe

Hi @csabol-stripe do you have any updates in regards to this? Is it also possible to pre populate those fields (defaultBillingDetails) such as is done on the android SDK. https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-configuration/index.html#1668077536%2FProperties%2F2002900378

haid45 avatar Oct 02 '21 09:10 haid45

As an update

  • You can set default billing details on the Configuration
  • We are working on adding support for configurable levels of billing address collection, including full billing address.

yuki-stripe avatar Oct 26 '22 18:10 yuki-stripe

setting the defaultBillingDetails is not reflecting on the payment sheet UI, when I click to add a new card, I still see Afghanistan as the selected country. sdk version: 23.3.1

Screenshot 2022-12-21 at 8 36 16 PM

output: country: Optional("Canada")

Screenshot 2022-12-21 at 8 37 36 PM

brenoxp avatar Dec 22 '22 01:12 brenoxp

Hello, this is available as of v23.6.

eurias-stripe avatar Apr 17 '23 19:04 eurias-stripe