thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
295 stars 174 forks source link

Added getProcessorFeeAmount() to return paypal fees when available #245

Open ananelson opened 3 years ago

ananelson commented 3 years ago

Payment processing fees are useful to know in order to create accounting/expense entries for them.

Adding a getProcessorFeeAmount() which returns a string containing paypal fees when available, and null when not. (Fees are not known until transaction is complete.)

Added tests and modified Mock data to accommodate.

ananelson commented 3 years ago

CI check failure seems unrelated to this PR? "Your requirements could not be resolved to an installable set of packages." - no changes to requirements from this PR