@storecraft/payments-paypal 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/adapter.js +2 -2
  2. package/package.json +1 -1
package/adapter.js CHANGED
@@ -58,11 +58,11 @@ export class Paypal {
58
58
  const is_prod = Boolean(this.config.env==='prod');
59
59
  this.config.client_id ??= app.platform.env[
60
60
  is_prod ? Paypal.EnvConfigProd.client_id : Paypal.EnvConfigTest.client_id
61
- ] ?? 'PAYPAL_CLIENT_ID';
61
+ ] ?? app.platform.env['PAYPAL_CLIENT_ID'];
62
62
 
63
63
  this.config.secret ??= app.platform.env[
64
64
  is_prod ? Paypal.EnvConfigProd.secret : Paypal.EnvConfigTest.secret
65
- ] ?? 'PAYPAL_SECRET';
65
+ ] ?? app.platform.env['PAYPAL_SECRET'];
66
66
 
67
67
  const is_valid = this.config.client_id && this.config.secret;
68
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storecraft/payments-paypal",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Official Paypal integration with Storecraft",
5
5
  "license": "MIT",
6
6
  "author": "Tomer Shalev (https://github.com/store-craft)",