The total payout amount to be paid to the shop is computed using the below algorithm.
Algorithm: TPS (total payout shop) = TA – D2
Where:
- TA (transfer_amount) = A – B – R – C – D1
- A (order/taxes/fees) = A1 + A2 + A3
- A1 = ORDER_AMOUNT + ORDER_SHIPPING_AMOUNT + ORDER_AMOUNT_TAX + ORDER_SHIPPING_AMOUNT_TAX
- A2 = REFUND_COMMISSION_FEE (return the commission back to shop in case of a refund) + REFUND_COMMISSION_VAT
- A3 = MANUAL_CREDIT + MANUAL_CREDIT_VAT
- A4 = OPERATOR_REMITTED_REFUND_ORDER_AMOUNT_TAX + OPERATOR_REMITTED_REFUND_ORDER_SHIPPING_AMOUNT_TAX
- B (operator commission) = COMMISION_FEE + COMMISION_VAT
- R(refunds) = REFUND_ORDER_AMOUNT + REFUND_ORDER_SHIPPING_AMOUNT + REFUND_ORDER_AMOUNT_TAX + REFUND_ORDER_SHIPPING_AMOUNT_TAX
- C (non transactional fees) = SUBSCRIPTION_FEE + SUBSCRIPTION_VAT + MANUAL_INVOICE + MANUAL_INVOICE_VAT
- D1 (Acquiring Fees) = FIXED_FEE + %_FEE * A1
- D2 (Settlement Fees) = FIXED_FEE + %_FEE * TA
- E (Operator Remitted fees) = OPERATOR_REMITTED_ORDER_AMOUNT_TAX + OPERATOR_REMITTED_REFUND_ORDER_SHIPPING_AMOUNT_TAX