Example of a customer paying via paypal or square

I am not finding an example to follow for when a customer uses paypal to pay for a sales item and how to account for the processing fee.
Any help would be appreciated.

In other accounting system, I would have a debit for the whole amount and a split credit - between cash account and fees
NormaLee

Search the forum for “PayPal.” Guidance has been provided previously.

Thank you