#kartik-paymentsheet
1 messages · Page 1 of 1 (latest)
implementation 'com.stripe:stripe-android:20.2.0'
I'm Implementing in Android kotlin
for me anyway code like this works
val configuration = PaymentSheet.BillingDetails.Builder()
.address(
PaymentSheet.Address.Builder()
.country("MT").build()
).build()
paymentSheet?.presentWithPaymentIntent(
// ...
// ...
defaultBillingDetails = configuration
)
)
do you have more context on what "not working" means and what you see versus what you expected to see?
I'm trying this code.
will inform you in few minutes
I have tried this but not working as expected
do you have more context on what "not working" means and what you see versus what you expected to see?
I'm Expecting the default country selected is Mexico but every time Default country id US
I'm following this documentation
can you share the exact code(the full thing in text, not screenshots)
cool, so it works now?
Not yet
I want to select Mexico as the default when I open the payment sheet. It is choosing the default US instead of Mexico
you're not setting defaultBillingDetails in that code
so of course it's not going to work
you can run the code and find out!
sure
Running the code
will let you know after checking
Still it is not working
try upgrading to the latest version of stripe-android
I think we had a bug in older versions where this feature did not work. It works for me on 20.2.1 for example with the same code
sure I will check with the newer version
Yes it's working with 20.2.1 👍
Thankyou @raw mulch
great!