Happy Business Starts Here

Tutor

Prepopulate country dropdown

Hello community,

 

for the SEPA payment method we have to provide the bank country field, which is a <select>. Is there a way to prepopulate that field like the 'normal' text inputs as explained here?

Because apparently the prepopulateFields object is useless:

            var prepopulateFields = {
                country: 'DEU'
            };


The dropdown is still shown as <select one> afterwards. 

Thank you very much
Sebastian

5 REPLIES 5
Highlighted
Support SME

Re: Prepopulate country dropdown

Hello,

 

Can you confirm if the country code 'DEU' is not showing up at all, or it is not selected as a default? We would like to get more details to help resolve this. Can you please submit this as a support ticket by sending an email to support@zuora.com. Please include the details to access your Payment Page. Thank you in advance.






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Zuora Alumni

Re: Prepopulate country dropdown

Hi @Sebastian,

 

The correct prepopulate field of country should be:

 

creditCardCountry:"DEU"

 

Here is the code I tested and worked for me.

 

var prepopulateFields = {
		creditCardCountry:"DEU"
		};

For more information about prepopulate fields in HPM solution, please refer to below article.

 

http://knowledgecenter.zuora.com/CA_Commerce/T_Hosted_Commerce_Pages/B_Payment_Pages_2.0/K_Payment_P...

 

I hope this is helpful to you.

 

Regards,
Dennis



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Tutor

Re: Prepopulate country dropdown

@Dennis
thanks for your answer, but as written initially, I'm not talking about credit cards, but about SEPA bank transfer. And there the name of the field is 'country' which you can also see in the list above your linked page.


@Rolando

ok, will open a support ticket. thank you.

Zuora Alumni

Re: Prepopulate country dropdown

Hi @Sebastian,

 

Sorry, I was thought it is credit card payment method. However, in the listed document, there is a list of the fields support prepopulate for SEPA payment method as well. In this case, it should be 

 

country:"DEU"

 

Screen Shot 2017-01-18 at 10.17.05 AM.png

 

 

var prepopulateFields = {
		country:"DEU"
		};

 

Regards,

Dennis

 

 



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

Tutor

Re: Prepopulate country dropdown

omg. it's about the quotes.

'DEU' isn't working, "DEU" is. 

 

I would say, that's kind of a bug. But thanks anyway @Dennis