[accelerator] add missing getters for applepay
This commit is contained in:
parent
29875e0095
commit
4d44ee55fc
@ -389,7 +389,7 @@
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@if (canPayWithCashapp) {
|
@if (canPayWithCashapp || canPayWithApplePay) {
|
||||||
<div class="col-sm text-center flex-grow-0 d-flex flex-column justify-content-center align-items-center">
|
<div class="col-sm text-center flex-grow-0 d-flex flex-column justify-content-center align-items-center">
|
||||||
<p class="text-nowrap">—<span i18n="or">OR</span>—</p>
|
<p class="text-nowrap">—<span i18n="or">OR</span>—</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -679,6 +679,13 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
return !!this.estimate?.availablePaymentMethods?.cashapp;
|
return !!this.estimate?.availablePaymentMethods?.cashapp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get couldPayWithApplePay() {
|
||||||
|
if (!this.applePayEnabled) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return !!this.estimate?.availablePaymentMethods?.applePay;
|
||||||
|
}
|
||||||
|
|
||||||
get couldPayWithBalance() {
|
get couldPayWithBalance() {
|
||||||
if (!this.hasAccessToBalanceMode) {
|
if (!this.hasAccessToBalanceMode) {
|
||||||
return false;
|
return false;
|
||||||
@ -687,7 +694,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get couldPay() {
|
get couldPay() {
|
||||||
return this.couldPayWithBalance || this.couldPayWithBitcoin || this.couldPayWithCashapp;
|
return this.couldPayWithBalance || this.couldPayWithBitcoin || this.couldPayWithCashapp || this.couldPayWithApplePay;
|
||||||
}
|
}
|
||||||
|
|
||||||
get canPayWithBitcoin() {
|
get canPayWithBitcoin() {
|
||||||
@ -707,7 +714,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -723,7 +730,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -736,7 +743,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get canPay() {
|
get canPay() {
|
||||||
return this.canPayWithBalance || this.canPayWithBitcoin || this.canPayWithCashapp;
|
return this.canPayWithBalance || this.canPayWithBitcoin || this.canPayWithCashapp || this.canPayWithApplePay;
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasAccessToBalanceMode() {
|
get hasAccessToBalanceMode() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user