#kartik-paymentsheet

1 messages · Page 1 of 1 (latest)

past needle
#

hi there! what SDK and what version are you using?

mighty shuttle
#

implementation 'com.stripe:stripe-android:20.2.0'

#

I'm Implementing in Android kotlin

raw mulch
#

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?

mighty shuttle
#

I'm trying this code.

#

will inform you in few minutes

#

I have tried this but not working as expected

raw mulch
#

do you have more context on what "not working" means and what you see versus what you expected to see?

mighty shuttle
#

I'm Expecting the default country selected is Mexico but every time Default country id US

#

I'm following this documentation

raw mulch
#

can you share the exact code(the full thing in text, not screenshots)

mighty shuttle
#

sure

raw mulch
#

cool, so it works now?

mighty shuttle
mighty shuttle
#

I want to select Mexico as the default when I open the payment sheet. It is choosing the default US instead of Mexico

raw mulch
#

you're not setting defaultBillingDetails in that code

#

so of course it's not going to work

mighty shuttle
#

is it ok ?

raw mulch
#

you can run the code and find out!

mighty shuttle
#

sure

#

Running the code

#

will let you know after checking

#

Still it is not working

raw mulch
#

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

mighty shuttle
#

sure I will check with the newer version

#

Yes it's working with 20.2.1 👍

#

Thankyou @raw mulch

raw mulch
#

great!