UNPKG

@unchainedshop/plugins

Version:

Because of a Typescript issue with upstream "postfinancecheckout", the Postfinance plugin has been disabled from transpilation, import the source ts files from src and enable node_module tsc or copy over the src/payment/postfinance-checkout to your projec

14 lines 461 B
import { OrderPricingSheet } from '@unchainedshop/core'; const roundedAmountFromOrder = (order) => { const pricing = OrderPricingSheet({ calculation: order.calculation, currency: order.currency, }); const { currency, amount } = pricing.total({ useNetPrice: false }); return { currency, amount: Math.round(amount), }; }; export default roundedAmountFromOrder; //# sourceMappingURL=roundedAmountFromOrder.js.map