How do we set default country to US on Braintree payment tool?

  • akt1
    Asked on February 1, 2016 at 4:01 PM

    I am using the Braintree Payment tool, and require card holders address verification how do I default the country setting to the US

  • victor
    Replied on February 1, 2016 at 10:40 PM

    if I understand you correctly, you would like to add an address field and make the default address setting to the US.

    You can add the address fields from the properties section. You may also add custom fields for you products if you wish

    How do we set default country to US on Braintree payment tool? Image 1 Screenshot 20

    I have review all the setting and did not see one where you can place the default country to US. I will try to search again, just in case I overlook it. If I find it I will let you know.

     

  • akt1
    Replied on February 1, 2016 at 11:17 PM

    I think it will need custom code

  • Chriistian Jotform Support
    Replied on February 2, 2016 at 4:11 AM

    I believe that is not possible with the payment integration. A workaround I can suggest is to add an address map locator widget to verify the address of the user in your form.

    How do we set default country to US on Braintree payment tool? Image 1 Screenshot 20

  • akt1
    Replied on February 2, 2016 at 1:19 PM

    The Jotform standard address widget allows a default country it must be possible in the payment tool
    to default the country to the USA

  • Ben
    Replied on February 2, 2016 at 4:04 PM

    Unfortunately no, it would not be possible, but based on what you have mentioned so far it seems to me that it is not only that you wish to have it default to US but to also only accept payments from US.

    If that is so a CSS workaround could be applied.

    Basically the form would look like this: https://form.jotform.com/60326530967963

    They would only see US. Now all that you need is to make the payment tool on your form required. Once it is as such, they would need to fill out all the details.

  • akt1
    Replied on February 3, 2016 at 8:24 PM

    Please give me the code it would help

    The standard address widget has this default feature, why not the payment tool

    How do we set default country to US on Braintree payment tool? Image 1 Screenshot 20

  • Chriistian Jotform Support
    Replied on February 3, 2016 at 9:47 PM

    This is the css that you can inject to your form to only accept payments from US:

    #input_23_country > option {

    display: none;

    }

    #input_23_country > option[value="United States"] {

    display: block;

    }

    You can do so by following this guide: How to Inject Custom CSS Codes