Skip to main content

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​

  1. Checks if order has a payment method set
  2. Creates a PaymentPricingSheet from the payment calculation
  3. Extracts net price and tax sum
  4. 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​

PropertyValue
Keyshop.unchained.pricing.order-payment
Version1.0.0
Order Index10
Sourcepricing/order-payment