Support

Home Forums Event Espresso Premium Braintree installation for european customers

Braintree installation for european customers

Posted: March 2, 2016 at 6:03 am


Oguzhan Altun

March 2, 2016 at 6:03 am

Hello,

I have just opened my account with Braintree and installed the Braintree plugin for EE4. I have two important issues:

1. It is obligatory in the customer payment form to select State. As you know, we don’t have states in Europe. Why is it obligatory for an account in Switzerland?
2. The only country options for the customer seem to be Switzerland / USA or Canada. Why??? I have a lot of international customers here who have credit cards from other countries. I need this list to be complete.

I can send screenshots if that will help.

I have asked these questions first to Braintree support, but they told me that these fields are created by EE4:

“Based on your screen shots, I believe those form fields are generated by Event Espresso and not the Braintree Drop-in UI integration. The best course of action for you to get assistance with these issues would be to contact Event Espresso directly. They will be best equipped to help you work through issues that are specific to the plugin.”

Could you please help?


Lorenzo Orlando Caum

  • Support Staff

March 2, 2016 at 8:53 am

Hello,

Add this to your site via a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/mn_billing_form_state_and_country_text_inputs.php

That will set the state and country fields to be optional and in a text field.


Lorenzo


Oguzhan Altun

March 2, 2016 at 9:17 am

hi,
This solution doesn’t work – I just installed this solution, and then created a test event ($1 ticket) and tried. I got an error:
Country code (alpha 2) is not an accepted country.

I think the country choice should really be a dropdown.

Also the fields do not make use of the automatic credit card filling capabilities of the browser – which I think is really necessary for a quick check-out process.

How to proceed?


Lorenzo Orlando Caum

  • Support Staff

March 2, 2016 at 10:25 am

Hi,

Remove line 9 from the sample code: https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/mn_billing_form_state_and_country_text_inputs.php#L9

Then follow this to enable all countries:

https://gist.github.com/lorenzocaum/8293c68d5d1bc3bb6403


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

March 3, 2016 at 8:00 am

Hello, could you share feedback on if this resolved the issue? I would like to update our documentation page for Braintree.

Thanks


Lorenzo


Oguzhan Altun

March 4, 2016 at 8:47 am

Hi,

I just had a chance to do these changes, and it works ok now: All countries are available and I can fill the credit card details automatically from the browser. Thank you.

The support post ‘Braintree installation for european customers’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso