The controllers integrate into Models and Views. All scripts are Common JS modules with defined and documented exports to avoid polluting the global namespace.
The controllers integrate into Models and Views. All scripts are Common JS modules with defined and documented exports to avoid polluting the global namespace.
Model and View Modifications
CartModel.js
–Model for cart functionality. Creates
a CartModel class with payment, shipping, and product helper methods.
validatePaymentInstruments
function for use
with validating Stripe or PayPal objects
CartView.js
–View used to render the cart. This
view makes sure the coupons, shipments, and basket calculation are up to date before rendering
the cart.
paymentHelpers
script from plugin_commercepayments