Vipps now uses __PRICE__ from env variables.
This commit is contained in:
@@ -10,14 +10,14 @@
|
|||||||
class="vipps-logo"
|
class="vipps-logo"
|
||||||
alt="vipps logo"
|
alt="vipps logo"
|
||||||
/>
|
/>
|
||||||
<span v-if="amount * 10 > 10">
|
<span v-if="amount * price > price">
|
||||||
kr.
|
kr.
|
||||||
<span class="big-money">{{ amount * 10 }},-</span>
|
<span class="big-money">{{ amount * price }},-</span>
|
||||||
(10,- pr. lodd)
|
{{ price }},- pr. lodd)
|
||||||
</span>
|
</span>
|
||||||
<span v-if="amount * 10 == 10">
|
<span v-if="amount * price == price">
|
||||||
kr.
|
kr.
|
||||||
<span class="big-money">{{ amount * 10 }},-</span>
|
<span class="big-money">{{ amount * price }},-</span>
|
||||||
pr. lodd
|
pr. lodd
|
||||||
</span>
|
</span>
|
||||||
<ing
|
<ing
|
||||||
@@ -52,6 +52,7 @@ export default {
|
|||||||
qrFailed: false,
|
qrFailed: false,
|
||||||
phone: __PHONE__,
|
phone: __PHONE__,
|
||||||
name: __NAME__,
|
name: __NAME__,
|
||||||
|
price: __PRICE__,
|
||||||
message: __MESSAGE__
|
message: __MESSAGE__
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -67,8 +68,8 @@ export default {
|
|||||||
isMobile: function() {
|
isMobile: function() {
|
||||||
return this.isMobileFunction();
|
return this.isMobileFunction();
|
||||||
},
|
},
|
||||||
price: function() {
|
priceToPay: function() {
|
||||||
return this.amount * (__PRICE__ * 100);
|
return this.amount * (this.price * 100);
|
||||||
},
|
},
|
||||||
vippsUrlBasedOnUserAgent: function() {
|
vippsUrlBasedOnUserAgent: function() {
|
||||||
if (navigator.userAgent.includes("iPhone")) {
|
if (navigator.userAgent.includes("iPhone")) {
|
||||||
@@ -78,7 +79,7 @@ export default {
|
|||||||
"?v=1&m=" +
|
"?v=1&m=" +
|
||||||
this.message +
|
this.message +
|
||||||
"&a=" +
|
"&a=" +
|
||||||
this.price
|
this.priceToPay
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user