[accelerator] fix cashapp acceleration on mobile
This commit is contained in:
parent
08d3beed72
commit
09b09710e4
@ -429,7 +429,8 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
|||||||
try {
|
try {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
this.payments = window.Square.payments(this.square.appId, this.square.locationId)
|
this.payments = window.Square.payments(this.square.appId, this.square.locationId)
|
||||||
if (this._step === 'cashapp') {
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
if (this._step === 'cashapp' || urlParams.get('cash_request_id')) {
|
||||||
await this.requestCashAppPayment();
|
await this.requestCashAppPayment();
|
||||||
} else if (this._step === 'applepay') {
|
} else if (this._step === 'applepay') {
|
||||||
await this.requestApplePayPayment();
|
await this.requestApplePayPayment();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user