What is the difference between priceToPay and grandTotal for TotalsTransfer

Hello dear Spryker experts,
I have a question what is the difference between priceToPay and grandTotal for TotalsTransfer.
I can see in logic of \Spryker\Zed\SalesPayment\Business\Expander\SalesOrderExpander::calculatePriceToPay
that we calculating it as grandTotal - all availableAmounts from payments which has IsLimitedAmount == true
IMO priceToPay is something that we should have as total price to pay for every payment methods (since it located in totalTransfer)
I also saw that similar question was asked here but unfortunately I wasn't able to find an answer for my question.
Happy to hear you thoughts about that.
Answers
-
Hi @xartyomkax ,
GrandTotals means the total order cost including item amount, all taxes, shipping, and discounts, whereas PriceToPay is the amount which the customer actually pays after deducting gift cards, store credits amounts etc from the GrandTotals.1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 80 Spryker News
- 953 Developer Corner
- 809 Spryker Development
- 91 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 27 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random