@settlr/sdk 0.6.2 → 0.6.3

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 CHANGED
@@ -31,7 +31,7 @@ declare const SUPPORTED_TOKENS: {
31
31
  type SupportedToken = keyof typeof SUPPORTED_TOKENS;
32
32
  declare const SETTLR_CHECKOUT_URL: {
33
33
  readonly production: "https://settlr.dev/checkout";
34
- readonly development: "http://localhost:3000/checkout";
34
+ readonly development: "https://settlr.dev/checkout";
35
35
  };
36
36
  declare const SUPPORTED_NETWORKS: readonly ["devnet", "mainnet-beta"];
37
37
  type SupportedNetwork = typeof SUPPORTED_NETWORKS[number];
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ declare const SUPPORTED_TOKENS: {
31
31
  type SupportedToken = keyof typeof SUPPORTED_TOKENS;
32
32
  declare const SETTLR_CHECKOUT_URL: {
33
33
  readonly production: "https://settlr.dev/checkout";
34
- readonly development: "http://localhost:3000/checkout";
34
+ readonly development: "https://settlr.dev/checkout";
35
35
  };
36
36
  declare const SUPPORTED_NETWORKS: readonly ["devnet", "mainnet-beta"];
37
37
  type SupportedNetwork = typeof SUPPORTED_NETWORKS[number];
package/dist/index.js CHANGED
@@ -107,11 +107,13 @@ var SUPPORTED_TOKENS = {
107
107
  };
108
108
  var SETTLR_API_URL = {
109
109
  production: "https://settlr.dev/api",
110
- development: "http://localhost:3000/api"
110
+ development: "https://settlr.dev/api"
111
+ // Always use production API
111
112
  };
112
113
  var SETTLR_CHECKOUT_URL = {
113
114
  production: "https://settlr.dev/checkout",
114
- development: "http://localhost:3000/checkout"
115
+ development: "https://settlr.dev/checkout"
116
+ // Always use production checkout
115
117
  };
116
118
  var SUPPORTED_NETWORKS = ["devnet", "mainnet-beta"];
117
119
  var USDC_DECIMALS = 6;
@@ -514,7 +516,7 @@ var Settlr = class {
514
516
  if (amount <= 0) {
515
517
  throw new Error("Amount must be greater than 0");
516
518
  }
517
- const baseUrl = this.config.testMode ? "http://localhost:3000" : "https://settlr.dev";
519
+ const baseUrl = "https://settlr.dev";
518
520
  const response = await fetch(`${baseUrl}/api/checkout/sessions`, {
519
521
  method: "POST",
520
522
  headers: {
package/dist/index.mjs CHANGED
@@ -43,11 +43,13 @@ var SUPPORTED_TOKENS = {
43
43
  };
44
44
  var SETTLR_API_URL = {
45
45
  production: "https://settlr.dev/api",
46
- development: "http://localhost:3000/api"
46
+ development: "https://settlr.dev/api"
47
+ // Always use production API
47
48
  };
48
49
  var SETTLR_CHECKOUT_URL = {
49
50
  production: "https://settlr.dev/checkout",
50
- development: "http://localhost:3000/checkout"
51
+ development: "https://settlr.dev/checkout"
52
+ // Always use production checkout
51
53
  };
52
54
  var SUPPORTED_NETWORKS = ["devnet", "mainnet-beta"];
53
55
  var USDC_DECIMALS = 6;
@@ -450,7 +452,7 @@ var Settlr = class {
450
452
  if (amount <= 0) {
451
453
  throw new Error("Amount must be greater than 0");
452
454
  }
453
- const baseUrl = this.config.testMode ? "http://localhost:3000" : "https://settlr.dev";
455
+ const baseUrl = "https://settlr.dev";
454
456
  const response = await fetch(`${baseUrl}/api/checkout/sessions`, {
455
457
  method: "POST",
456
458
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlr/sdk",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Settlr SDK - Accept Solana USDC payments with privacy. Email checkout, gasless transactions, FHE-encrypted receipts. Private on-chain, compliant off-chain.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",