@cohostvip/cohost-react 0.1.12 → 0.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"authnet.d.ts","sourceRoot":"","sources":["../../../src/lib/tokenizers/authnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,MAAM,CAAC,EAAE,GAAG,CAAC;KAChB;CACJ;AAiDD,QAAA,MAAM,gBAAgB,EAAE,SAGvB,CAAA;AACD,OAAO,EACH,gBAAgB,EACnB,CAAA"}
1
+ {"version":3,"file":"authnet.d.ts","sourceRoot":"","sources":["../../../src/lib/tokenizers/authnet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,SAAS,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,MAAM,CAAC,EAAE,GAAG,CAAC;KAChB;CACJ;AAoDD,QAAA,MAAM,gBAAgB,EAAE,SAGvB,CAAA;AACD,OAAO,EACH,gBAAgB,EACnB,CAAA"}
@@ -29,11 +29,13 @@ const tokenizeCard = async (cardInfo, paymentIntent) => {
29
29
  };
30
30
  const registerScripts = () => {
31
31
  const scriptId = 'authnet-accept-js';
32
+ // const testingUrl = 'https://jstest.authorize.net/v1/Accept.js';
33
+ const productionUrl = 'https://js.authorize.net/v1/Accept.js';
32
34
  // Only add if not already in the DOM
33
35
  if (!document.getElementById(scriptId)) {
34
36
  const script = document.createElement('script');
35
37
  script.id = scriptId;
36
- script.src = 'https://jstest.authorize.net/v1/Accept.js';
38
+ script.src = productionUrl;
37
39
  script.async = true;
38
40
  document.body.appendChild(script);
39
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cohostvip/cohost-react",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "description": "React bindings for the Cohost API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "react-dom": "^18.0.0 || ^19.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@cohostvip/cohost-node": "workspace:^"
30
+ "@cohostvip/cohost-node": "^0.1.14"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "6.6.3",
@@ -64,4 +64,4 @@
64
64
  "sdk",
65
65
  "typescript"
66
66
  ]
67
- }
67
+ }