Skip to content

Commit

Permalink
Merge pull request #1069 from CruGlobal/fix-branded-amount-handling
Browse files Browse the repository at this point in the history
itemConfig should be using AMOUNT, not amount
  • Loading branch information
wrandall22 authored Oct 27, 2023
2 parents 0881f8b + 3385a50 commit 9bb3850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/branded/step-1/branded-checkout-step-1.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
})
Expand Down

0 comments on commit 9bb3850

Please sign in to comment.