Sub topic 10
Payment fees, sales tax and VAT in your price
Assume you already have a target course price, a defined audience, and basic percentage arithmetic. This chapter focuses on how payment fees, sales tax, and VAT change the amount you keep. Tax rules vary by country, product classification, and selling channel, so treat the rates below as examples rather than legal or tax advice.
Separate the three deductions
These deductions affect a sale in different ways:
- A payment fee is charged by a payment processor. It is often a percentage of the transaction plus a fixed amount.
- Sales tax is a consumption tax charged by some jurisdictions, mainly in the United States and Canada. The rate and collection responsibility depend on the buyer's location and local rules.
- VAT, or value-added tax, is a consumption tax used in many countries. A displayed price may include VAT, or VAT may be added at checkout.
- A platform revenue share is the portion retained by a marketplace such as Udemy. It is separate from payment processing and tax.
First decide whether your displayed price is tax-exclusive or tax-inclusive.
If a course costs $100 before tax and the buyer pays 20% VAT on top, the checkout total is $120. If the displayed $100 includes 20% VAT, the taxable portion is:
\[ 100 \div 1.20 = 83.33 \]
The VAT portion is $16.67. You should not treat the full $100 as revenue.
Calculate the amount kept
For an own-site sale, a simple model is:
\[ \text{net} = \text{tax-exclusive price} - (\text{price} \times \text{fee rate}) - \text{fixed fee} \]
This assumes you collect the tax and later remit it. The tax is not part of your operating revenue.
from decimal import Decimal, ROUND_HALF_UP
CENT = Decimal("0.01")
def money(value: Decimal) -> Decimal:
return value.quantize(CENT, rounding=ROUND_HALF_UP)
def sale_breakdown(
customer_total: Decimal,
vat_rate: Decimal,
payment_rate: Decimal,
payment_fixed: Decimal,
) -> tuple[Decimal, Decimal, Decimal]:
# customer_total includes VAT, such as 120.00 at a 20% VAT rate
tax_exclusive = customer_total / (Decimal("1") + vat_rate)
vat = customer_total - tax_exclusive
payment_fee = customer_total * payment_rate + payment_fixed
net_before_income_tax = tax_exclusive - payment_fee
return money(vat), money(payment_fee), money(net_before_income_tax)
vat, fee, net = sale_breakdown(
Decimal("120.00"),
Decimal("0.20"),
Decimal("0.029"),
Decimal("0.30"),
)
print(f"VAT collected: ${vat}")
print(f"Payment fee: ${fee}")
print(f"Net before income tax: ${net}")The example charges the payment fee on the full customer total. Your processor's contract may calculate it differently, so verify the statement format.
Compare selling channels
On a marketplace, the platform may calculate, collect, and remit certain buyer taxes. Your payout statement should show which deductions have already occurred. Do not assume that a marketplace's list price equals your taxable or payable revenue.
On your own site, you usually own more of the workflow:
- Determine the buyer's location and applicable tax treatment.
- Show whether tax is included or added.
- Collect and record the tax.
- Subtract processor fees from the correct transaction amount.
- Keep invoices and evidence for your filing obligations.
Model the checkout flow
Use one consistent rule for coupons. If a coupon reduces the course price before VAT, both the tax and the payment fee may fall. Record the pre-discount price, discount, taxable amount, tax, processor fee, and net amount for every order.
Exercise
A customer pays $120 including 20% VAT. The processor charges 2.9% plus $0.30 on the total. What are the VAT amount and net amount before income tax?
Show answer
VAT is $20.00. The payment fee is $3.78, so the net amount is $96.22.