Order Payment Pricing
Adds the calculated payment fees and taxes to the order total.
Included in Base Preset
This plugin is part of the base preset and loaded automatically. Using the base preset is strongly recommended, so explicit installation is usually not required.
Installation
import '@unchainedshop/plugins/pricing/order-payment';
How It Works
- Checks if order has a payment method set
- Creates a PaymentPricingSheet from the payment calculation
- Extracts gross price and tax sum
- Adds payment amount and tax to the order pricing sheet
Prerequisites
- Payment must be selected on the order
- Payment pricing adapters must have calculated the payment fees
Adapter Details
| Property | Value |
|---|---|
| Key | shop.unchained.pricing.order-payment |
| Version | 1.0.0 |
| Order Index | 10 |
| Source | pricing/order-payment.ts |
Related
- Order Items - Sum product prices
- Order Delivery - Add delivery fees
- Payment Pricing - Custom payment pricing