The processing fee is typically calculated as a percentage of the total transaction amount or as a flat fee per transaction. The percentage or flat fee amount is determined by the payment processor or service provider that is facilitating the transaction. It is important to review the terms and conditions of the payment processing service to understand how the processing fee is calculated for your specific situation.