Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Version 4.0.0] billing address #175

Closed
benju69 opened this issue Dec 20, 2022 · 6 comments
Closed

[Version 4.0.0] billing address #175

benju69 opened this issue Dec 20, 2022 · 6 comments

Comments

@benju69
Copy link
Contributor

benju69 commented Dec 20, 2022

Is your feature request related to a problem? Please describe.
Is it possible to don't show the billing address like before
includeBilling(false)
I don't want the address block, we handle addresses on our side

@chintan-soni-cko
Copy link
Contributor

@benju69 Thank you for providing information regarding your concern.
We have the possibility to hide the address block in the styling.

  1. if you using the default SDK style for the payment form please pass addressSummarystyle as null into PaymentformConfig. Example here
    style = PaymentFormStyle(paymentDetailsStyle = PaymentDetailsStyle(addressSummaryStyle = null))
  2. If you using custom styling for paymentform, please pass null to addressSummaryStyle Example here
  3. If you are using custom theming style for payment form, please add setIsFieldHidden to true in order to hide billing form summary. Example here

Hope above solution helpful for you. Let me know if you need more help or any questions.

@benju69
Copy link
Contributor Author

benju69 commented Dec 21, 2022

Ok with paymentFormStyle.paymentDetailsStyle.addressSummaryStyle = null Thanks

@devs-gireeb
Copy link

Hi,

How can we set below fields like before?

injectCardHolderName(this.firstName)

injectPhone( PhoneModel( "971", phone ) )

injectBilling( billingModel )

@chintan-soni-cko
Copy link
Contributor

chintan-soni-cko commented Dec 29, 2022

Hi @Devs-97Eats , you can set fields for the billing form as we have had that possibility before.
Please find below solutions for it.

  1. If you want to use the default billing form, use the SDK default style which will provide all default fields. See example here. More details
  2. If you want to inject specific fields along with desired order. Please have a look at example here
  3. If you want to inject custom fields by using theming style of SDK. Please have a look at example here)
    Please refer. SDK documentation

@devs-gireeb
Copy link

devs-gireeb commented Dec 29, 2022

Thanks for the quick reply, I tried your solutions above but there are no related functions for injecting values and I only found style functions.

Note:

  • I'm looking to hide address, bill views, and inject all customer details through the code, so only card number, expiry date, and CVV will be shown.

  • I got this error ( Invalid county ) when I tried ( addressSummaryStyle = null , setIsFieldHidden to true)

@maxim-nosov-cko
Copy link
Contributor

maxim-nosov-cko commented Dec 30, 2022

Hi @Devs-97Eats

Billing address data injection is not available right now.
If this functionality is needed please create a feature request ticket.

The Invalid country error looks like an implementation issue.
Please create a new ticket for further discussion with detailed code snippets and please clarify which customization approach is used (custom styling, default SDK styling, or theming).

***This ticket is closed and any further discussion should be moved to somewhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants