bugfix: correct typo in sandbox url var

This commit is contained in:
AJ ONeal 2021-10-17 00:50:54 -06:00
parent 7803b052e5
commit 7466e8a28e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ PayPal.init = function (client_id, client_secret, env, opts) {
if ("live" === env) {
PayPal.__baseUrl = PayPal.__liveApiBaseUrl;
} else {
PayPal.__baseUrl = PayPal.__sandboxUrl;
PayPal.__baseUrl = PayPal.__sandboxApiBaseUrl;
console.debug("[PayPal Checkout] ENVIRONMENT=sandbox");
}
PayPal.__id = client_id;