checkout / frames-android

Frames Android: making native card payments simple
https://www.checkout.com/docs/integrate/sdks/android-sdk
MIT License
47 stars 32 forks source link

Billing Address Optional #274

Closed muhammadimran021 closed 1 month ago

muhammadimran021 commented 1 month ago

Dear Team Is there any option to make billing address optional ? or any option to hide billing address

chintan-soni-cko commented 1 month ago

Hi, @muhammadimran021 Thanks for raising it. Please find the existing conversation here to hide the billing address and to make it optional, you can add the below code in PaymentFormConfig:

style = PaymentFormStyle(
            PaymentDetailsStyle(
                addressSummaryStyle = DefaultAddressSummaryComponentStyle.light(
                    isOptional = true,
                ),
            ),
        )
muhammadimran021 commented 1 month ago

Hi @chintan-soni-cko ,

Thank you for your support and providing a solution. I implemented the suggested solution, and it works 🎉🥳.

Thanks!

jheng-hao-lin-cko commented 1 month ago

Closed as the issue is resolved :)