Set country when open visa checkout

akiranukamoto
Occasional Visitor

Set country when open visa checkout

Hi, how can I set a default country when open Visa checkout? I'm try this, but not work:

        function onVisaCheckoutReady(){
            V.init({
                country: "BR",
                locale: "es-BR",
                apikey: "VisaCheckoutApiKey"
            });

            V.on("payment.success", function(payment) {
                console.log('cancel', JSON.stringify(payment));
            });

            V.on("payment.cancel", function(payment) {
                console.log('cancel', JSON.stringify(payment));
            });

            V.on("payment.error", function(payment, error) {
                console.log('error', JSON.stringify(payment));
            });
        }

Thanks!

2 REPLIES 2
API_Products
Visa Developer Support Specialist

Re: Set country when open visa checkout

Hi akiranukamoto,

 

We have an expert team that manages questions specific to the Visa Checkout product. Please submit this inquiry to Developer@visa.com and someone will connect you to the expert team soon!

 

Thank you,

Diana




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

akiranukamoto
Occasional Visitor

Re: Set country when open visa checkout

Thanks!