@lavapayments/nodejs 1.0.1 → 1.1.0
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.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -159,7 +159,7 @@ var Lava = class {
|
|
|
159
159
|
constructor(secretKey, config) {
|
|
160
160
|
this.secretKey = secretKey;
|
|
161
161
|
this.apiVersion = config.apiVersion;
|
|
162
|
-
const isTestMode = secretKey.startsWith("
|
|
162
|
+
const isTestMode = secretKey.startsWith("aks_test_");
|
|
163
163
|
this.baseUrl = config.baseUrl || (isTestMode ? "https://sandbox-api.lavapayments.com/v1/" : "https://api.lavapayments.com/v1/");
|
|
164
164
|
this.checkout = new Resources.CheckoutResource(this);
|
|
165
165
|
this.connections = new Resources.ConnectionsResource(this);
|
package/dist/index.mjs
CHANGED
|
@@ -132,7 +132,7 @@ var Lava = class {
|
|
|
132
132
|
constructor(secretKey, config) {
|
|
133
133
|
this.secretKey = secretKey;
|
|
134
134
|
this.apiVersion = config.apiVersion;
|
|
135
|
-
const isTestMode = secretKey.startsWith("
|
|
135
|
+
const isTestMode = secretKey.startsWith("aks_test_");
|
|
136
136
|
this.baseUrl = config.baseUrl || (isTestMode ? "https://sandbox-api.lavapayments.com/v1/" : "https://api.lavapayments.com/v1/");
|
|
137
137
|
this.checkout = new Resources.CheckoutResource(this);
|
|
138
138
|
this.connections = new Resources.ConnectionsResource(this);
|