ngx-paypal icon indicating copy to clipboard operation
ngx-paypal copied to clipboard

How to change default country on PayPal debit/credit card form?

Open shreyshahh opened this issue 3 years ago • 1 comments

I am sending country code to shipping address setting like,

shipping: {
              address: {
                country_code: 'GB',
             }
}

Also I have tried to send country code in payer's setting like,

payer: {
          address: {
            country_code: 'GB'
          }
        },

Also tried to set locale in application context settings like,

application_context: {
          locale: "en-GB",
        }

Still it shows United States as country, is there a way I can change the country?

Screenshot (63)

shreyshahh avatar Jul 23 '21 04:07 shreyshahh

PayPal uses the navigator location to set the default country BUT sometimes it doesn't work, so you need in (advanced extraqueryparams) add locale value. (This is when you declare Paypal Config) Like this: advanced: { commit: 'true', extraQueryParams: [{ name: 'locale', value: 'es_MX' }], }, You can see the list of value on https://developer.paypal.com/reference/locale-codes/

sebauer96 avatar Sep 27 '22 13:09 sebauer96