Order Payment Pricing
Adds the calculated payment fees and taxes to the order total.
Included in Base Preset
Registered automatically by registerBasePlugins() / registerAllPlugins().
Registration
import { pluginRegistry } from '@unchainedshop/core';
import { OrderPaymentPlugin } from '@unchainedshop/plugins/pricing/order-payment';
pluginRegistry.register(OrderPaymentPlugin);
How It Works
- Checks if order has a payment method set
- Creates a PaymentPricingSheet from the payment calculation
- Extracts net 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 |
Related
- Order Items - Sum product prices
- Order Delivery - Add delivery fees
- Payment Pricing - Custom payment pricing