@everymatrix/player-deposit 1.0.8 → 1.0.10

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/player-deposit",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "main": "dist/player-deposit",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -10,12 +10,12 @@
10
10
  export let playerid:string = '';
11
11
  export let lang:string = 'en';
12
12
  export let hasdefaultamount:string = '';
13
+ export let playercurrency:string = '';
13
14
 
14
15
  let userAgent:string = window.navigator.userAgent;
15
16
  let isMobile:boolean = (getDevice(userAgent) === 'PC') ? false : true;
16
17
  let isLoading:boolean = true;
17
18
 
18
- let currency:string = '';
19
19
  let amount:number = 0;
20
20
  let iframeUrl:string = '';
21
21
 
@@ -32,7 +32,7 @@
32
32
  if (e.data) {
33
33
  switch(e.data.type) {
34
34
  case 'ProfileDetailsData':
35
- currency = e.data.profileDetails.currency;
35
+ playercurrency = e.data.profileDetails.currency;
36
36
  break;
37
37
  }
38
38
 
@@ -64,7 +64,7 @@
64
64
  let url:URL = new URL(`${endpoint}/player/${playerid}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
65
65
 
66
66
  if(hasdefaultamount){
67
- switch(currency){
67
+ switch(playercurrency){
68
68
  case 'USD':
69
69
  amount = 0.40;
70
70
  break;
@@ -79,7 +79,7 @@
79
79
  method: "POST",
80
80
  headers: {
81
81
  'X-SessionId': session,
82
- currency: currency || 'EUR',
82
+ currency: playercurrency || 'EUR',
83
83
  amount: amount,
84
84
  cashierMode: 'Default',
85
85
  IsShortCashier: false,
@@ -113,7 +113,7 @@
113
113
  });
114
114
 
115
115
  $: lang && setActiveLanguage();
116
- $: session && playerid && endpoint && currency && getDepositIframe();
116
+ $: session && playerid && endpoint && playercurrency && getDepositIframe();
117
117
  </script>
118
118
 
119
119
  <div class="DepositWrapper {isMobile ? 'DepositWrapperMobile' : ''}" part="DepositWrapper {isMobile ? 'DepositWrapperMobile' : ''}">