#rohan09
1 messages · Page 1 of 1 (latest)
Hi there, are you talking about BillingDetailsCollectionConfiguration ? (https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet/-billing-details-collection-configuration/index.html)
@dull flower Yes but how we can do it in versions before 20.23.0 when BillingDetailsCollectionConfiguration was not present
Please refer to mentioned thread for more context and details.
Why can't you update to a version that includes BillingDetailsCollectionConfiguration ?
I am on targetSdkVersion and compileSdkVersion 32 therefore bumping up to 33 may cause breaking changes to the project
Need to do it but the priority is to implement it first
I'd suggest you to bump it to 33 because soon or later you need to do it anyway.
Yes that's the part of our next release because it needs time to check the project after bumping up.
For current release plans we have this on priority
Can you please help me with that ?
I don't see a solution to use BillingDetailsCollectionConfiguration without using the appropriate version of SDK. You might want to discuss with your team and plan the SDK update.
Can you please point me to what Stripe was using before BillingDetailsCollectionConfiguration because passing defaultBillingDetailswas still available in previous versions ?
Can you tell me what exactly you want to achieve?
I want to do International Payments in USD using Payment Intents and Stripe Account is based of India.
So as per Indian Regulations, Stripe requires billing details and description to be passed in Payment Intent
OK. https://stripe.com/docs/india-accept-international-payments you need to set the address on the customer object, not the payment_method object which paymentSheet would set to.
So I don't see either defaultBillingDetails or BillingDetailsCollectionConfiguration is helpful in your use case.
So the steps will be as follows:
- Create a customer with billing details while creating payment intent server side
- Use customer Id and epimeral key in PaymentSheet by passing the Customer Configuration on Frontend (Android)
But how can I take billing details from PaymentSheet in Android ?
https://stripe.com/docs/elements/address-element/collect-addresses?platform=android you might want to use AddressLauncher to collect the address and set it to your customer before creating a PaymentIntent.
Ohh ok got it
Thank you so much for your time and helping out with the queries 😇