@everymatrix/cashier-methods-list 1.20.10 → 1.20.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/cashier-methods-list",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.11",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d136b207b6b54732d60b088559d888f159073b0a"
|
|
39
39
|
}
|
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
export let lang:string = 'en';
|
|
9
9
|
export let endpoint:string;
|
|
10
|
-
export let
|
|
11
|
-
export let xpaymentsessiontoken:string;
|
|
12
|
-
export let merchantid: string;
|
|
10
|
+
export let session:string;
|
|
13
11
|
export let customerid: string;
|
|
14
12
|
export let currency: string;
|
|
15
13
|
export let translationurl:string='';
|
|
@@ -25,7 +23,11 @@
|
|
|
25
23
|
let customStylingContainer:HTMLElement;
|
|
26
24
|
let selectedPaymentMethod: string;
|
|
27
25
|
|
|
28
|
-
$: endpoint &&
|
|
26
|
+
$: endpoint && session && customerid && getMetaData();
|
|
27
|
+
$: lang && setActiveLanguage();
|
|
28
|
+
$: translationurl && setTranslationUrl();
|
|
29
|
+
$: clientstyling && customStylingContainer && setClientStyling();
|
|
30
|
+
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
29
31
|
|
|
30
32
|
const dispatch = createEventDispatcher();
|
|
31
33
|
const setTranslationUrl = () => {
|
|
@@ -53,19 +55,16 @@
|
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
const getMetaData = () => {
|
|
56
|
-
const url:URL = new URL(`${endpoint}/
|
|
58
|
+
const url:URL = new URL(`${endpoint}/v1/player/${customerid}/payment/GetPaymentMetadata`);
|
|
57
59
|
const headers = new Headers();
|
|
58
60
|
headers.append("accept", "application/json");
|
|
59
61
|
headers.append("Content-Type", "application/json");
|
|
60
|
-
headers.append(
|
|
61
|
-
headers.append("X-Payment-Session-Token", `${xpaymentsessiontoken}`);
|
|
62
|
+
headers.append("X-Payment-Session-Token", `${session}`);
|
|
62
63
|
const requestParams:RequestInit = {
|
|
63
64
|
method: "POST",
|
|
64
65
|
mode: "cors",
|
|
65
66
|
headers: headers,
|
|
66
67
|
body: JSON.stringify({
|
|
67
|
-
"MerchantId": merchantid,
|
|
68
|
-
"CustomerId": `${customerid}`,
|
|
69
68
|
"Currency": currency,
|
|
70
69
|
})
|
|
71
70
|
}
|
|
@@ -118,11 +117,6 @@
|
|
|
118
117
|
});
|
|
119
118
|
}
|
|
120
119
|
|
|
121
|
-
$: lang && setActiveLanguage();
|
|
122
|
-
$: translationurl && setTranslationUrl();
|
|
123
|
-
$: clientstyling && customStylingContainer && setClientStyling();
|
|
124
|
-
$: clientstylingurl && customStylingContainer && setClientStylingURL();
|
|
125
|
-
|
|
126
120
|
</script>
|
|
127
121
|
|
|
128
122
|
<div class="CashierMethodItem">
|