Skip to content

Commit

Permalink
Merge pull request #89 from Affirm/hotfix_PSE-1665
Browse files Browse the repository at this point in the history
Use base total amounts
  • Loading branch information
taehyunlim authored Oct 13, 2022
2 parents 78b777f + 6477ae1 commit ca07889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/frontend/web/js/model/affirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ define([
*/
prepareTotals: function() {
var totals = quote.getTotals()();
this.shippingAmount = this.convertPriceToCents(totals.shipping_amount);
this.total = this.convertPriceToCents(totals.grand_total);
this.tax_amount = this.convertPriceToCents(totals.tax_amount);
this.shippingAmount = this.convertPriceToCents(totals.base_shipping_amount);
this.total = this.convertPriceToCents(totals.base_grand_total);
this.tax_amount = this.convertPriceToCents(totals.base_tax_amount);
},

/**
Expand Down

0 comments on commit ca07889

Please sign in to comment.