paypal-braintree-web-client
Advanced tools
Comparing version 4.0.35 to 4.0.36
{ | ||
"name": "paypal-braintree-web-client", | ||
"version": "4.0.35", | ||
"version": "4.0.36", | ||
"description": "Shared config between PayPal/Braintree.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,2 +13,3 @@ /* @flow */ | ||
declare var __ENV__ : $Values<typeof ENV>; | ||
declare var __BUYER_COUNTRY__: $Values<typeof COUNTRY>; | ||
declare var __LOCALE_COUNTRY__ : $Values<typeof COUNTRY>; | ||
@@ -15,0 +16,0 @@ declare var __DEBUG__ : boolean; |
@@ -26,3 +26,7 @@ /* @flow */ | ||
export function getBuyerCountry() : $Values<typeof COUNTRY> { | ||
// Change to buyer country | ||
if (typeof __BUYER_COUNTRY__ !== 'undefined') { | ||
return __BUYER_COUNTRY__; | ||
} | ||
// Remove | ||
return __LOCALE_COUNTRY__; | ||
@@ -29,0 +33,0 @@ } |
46454
788