I don’t think this is correct. It leads to the issue @InfoHunter described - where they have an expense that isn’t on their bank statement & then they can’t reconcile.
Don’t create a separate payment.
Instead, create the receipt as the total owing from the customer (“Accounts receivable” if you invoiced them), and then on a second line item in the same receipt add the PayPal fees (record it as “Bank fees” or similar).
The result is that “Accounts receivable” for the customer is modified by the correct (full amount), but the total for that receipt is their payment amount less the PayPal fees … meaning it will reconcile with what your bank statement actually shows.
If this is unclear I can provide a screenshot later to demonstrate. Currently on phone.