@odus/checkout 0.1.0 → 0.1.1
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/checkout.js +1 -1
- package/dist/checkout.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const L = (
|
|
1
|
+
const L = () => "http://localhost:3000", D = ({ name: n }) => {
|
|
2
2
|
const [e, ...t] = n?.split(" ") || [], [i] = t.reverse();
|
|
3
3
|
return { firstName: e, lastName: i };
|
|
4
4
|
};
|
|
@@ -7,7 +7,7 @@ class V {
|
|
|
7
7
|
baseUrl;
|
|
8
8
|
browserInfo;
|
|
9
9
|
constructor(e, t, i) {
|
|
10
|
-
this.apiKey = e, this.baseUrl = L(
|
|
10
|
+
this.apiKey = e, this.baseUrl = L(), this.browserInfo = i || { userAgent: navigator.userAgent };
|
|
11
11
|
}
|
|
12
12
|
async fetchApi({
|
|
13
13
|
endpoint: e,
|
|
@@ -105,7 +105,7 @@ const A = async ({
|
|
|
105
105
|
apiKey: e,
|
|
106
106
|
environment: t
|
|
107
107
|
}) => {
|
|
108
|
-
const i = L(
|
|
108
|
+
const i = L(), a = await fetch(`${i}/checkout-profiles/${n}`, {
|
|
109
109
|
method: "GET",
|
|
110
110
|
headers: {
|
|
111
111
|
"Content-Type": "application/json",
|
|
@@ -515,7 +515,7 @@ const T = {
|
|
|
515
515
|
apiKey: e,
|
|
516
516
|
environment: t
|
|
517
517
|
}) => {
|
|
518
|
-
const i = L(
|
|
518
|
+
const i = L(), a = await fetch(
|
|
519
519
|
`${i}/tokenization/generate-iframe-configuration`,
|
|
520
520
|
{
|
|
521
521
|
method: "POST",
|