From 3385a503face39baeff4f0622b313cdbfa1a0c21 Mon Sep 17 00:00:00 2001 From: Bill Randall Date: Fri, 27 Oct 2023 10:54:04 -0400 Subject: [PATCH] itemConfig should be using AMOUNT, not amount --- src/app/branded/step-1/branded-checkout-step-1.component.js | 2 +- src/app/branded/step-1/branded-checkout-step-1.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/branded/step-1/branded-checkout-step-1.component.js b/src/app/branded/step-1/branded-checkout-step-1.component.js index a60b2f1d4..57827744f 100644 --- a/src/app/branded/step-1/branded-checkout-step-1.component.js +++ b/src/app/branded/step-1/branded-checkout-step-1.component.js @@ -39,7 +39,7 @@ class BrandedCheckoutStep1Controller { this.itemConfig.CAMPAIGN_CODE = '' } this.itemConfig['campaign-page'] = this.campaignPage - this.itemConfig.amount = this.amount + this.itemConfig.AMOUNT = this.amount // These lines calculate the price with fees for amounts coming in from the client site via component config if (this.amount) { diff --git a/src/app/branded/step-1/branded-checkout-step-1.spec.js b/src/app/branded/step-1/branded-checkout-step-1.spec.js index d63960a92..36c8c35ea 100644 --- a/src/app/branded/step-1/branded-checkout-step-1.spec.js +++ b/src/app/branded/step-1/branded-checkout-step-1.spec.js @@ -41,7 +41,7 @@ describe('branded checkout step 1', () => { expect($ctrl.itemConfig).toEqual({ CAMPAIGN_CODE: '1234', 'campaign-page': '135', - amount: '75', + AMOUNT: '75', priceWithFees: '$76.80', 'RECURRING_DAY_OF_MONTH': '9' })