From f54bccf267ff3e4b75a0875218a4be208ebca6b9 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Tue, 28 Jan 2025 18:33:50 +0100 Subject: [PATCH] [accelerator] fix cashapp acceleration --- .../accelerate-checkout/accelerate-checkout.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index f4f9fbbc2..ac6c7f147 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -211,7 +211,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { if (this.timeoutTimer) { clearTimeout(this.timeoutTimer); } - if (!this.estimate && ['quote', 'summary', 'checkout'].includes(this.step)) { + if (!this.estimate && ['quote', 'summary', 'checkout', 'processing'].includes(this.step)) { this.fetchEstimate(); } if (this._step === 'checkout') { @@ -838,7 +838,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { } const redirectHostname = document.location.hostname === 'localhost' ? `http://localhost:4200`: `https://${document.location.hostname}`; - const costUSD = this.step === 'processing' ? 69.69 : (this.cost / 100_000_000 * conversions.USD); // When we're redirected to this component, the payment data is already linked to the payment token, so does not matter what amonut we put in there, therefore it's 69.69 + const costUSD = this.cost / 100_000_000 * conversions.USD; const paymentRequest = this.payments.paymentRequest({ countryCode: 'US', currencyCode: 'USD',