strangerstudios / pmpro-pay-by-check

Add a "Pay by Check" option to PMPro levels, and keep members in "pending" status until an admin changes the order status.
https://www.paidmembershipspro.com/add-ons/pmpro-pay-by-check-add-on/
11 stars 27 forks source link

Bug: Returns Fatal error when primary payment gateway was set to PayPal Express #43

Closed ipokkel closed 2 years ago

ipokkel commented 5 years ago

When PayPal Express is set as primary gateway the checkout page returns the following error:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'PMProGateway_paypalexpress' does not have a method 'pmpro_checkout_after_form' in /app/public/wp-includes/class-wp-hook.php on line 286

This hook was removed from PMPro 2.1 here https://github.com/strangerstudios/paid-memberships-pro/commit/aa938233070a7f8146cdb57e734b721a92a2e35b#diff-20a7c748561106d979dac7b5825b61be