@kuvarpay/sdk 1.1.0 → 1.2.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.
Files changed (3) hide show
  1. package/index.js +4 -4
  2. package/index.mjs +4 -4
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10,10 +10,10 @@
10
10
 
11
11
  const crypto = require('crypto');
12
12
 
13
- const DEFAULT_BASE = (process.env.PAYMENT_API_BASE_URL
14
- || process.env.PAYMENT_SERVER_URL
15
- || process.env.NEXT_PUBLIC_PAYMENT_API_BASE_URL
16
- || 'http://localhost:3002').replace(/\/+$/, '');
13
+ const DEFAULT_BASE = (process.env.KUVARPAY_API_BASE_URL
14
+ || process.env.PAYMENT_API_BASE_URL
15
+ || 'https://payment.kuvarpay.com'
16
+ ).replace(/\/$/, '');
17
17
 
18
18
  class KuvarPayServer {
19
19
  /**
package/index.mjs CHANGED
@@ -8,10 +8,10 @@
8
8
 
9
9
  import crypto from 'node:crypto';
10
10
 
11
- const DEFAULT_BASE = (process.env.PAYMENT_API_BASE_URL
12
- || process.env.PAYMENT_SERVER_URL
13
- || process.env.NEXT_PUBLIC_PAYMENT_API_BASE_URL
14
- || 'http://localhost:3002').replace(/\/+$/, '');
11
+ const DEFAULT_BASE = (process.env.KUVARPAY_API_BASE_URL
12
+ || process.env.PAYMENT_API_BASE_URL
13
+ || 'https://payment.kuvarpay.com'
14
+ ).replace(/\/$/, '');
15
15
 
16
16
  export class KuvarPayServer {
17
17
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuvarpay/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Official KuvarPay Server SDK for Node.js",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",