Fatal in change_format_savecard()
-
Hi
There’s a problem in version 2.1.2:
Wc_TrustPayments_Main::change_format_savecard() is registered on the global filter:
add_filter( 'woocommerce_payment_gateway_get_saved_payment_method_option_html', array( $this, 'change_format_savecard' ), 10, 3 );When WooCommerce PayPal Payments renders a vaulted PayPal account, it passes a WooCommerce\PayPalCommerce\WcPaymentTokens\PaymentTokenPayPal token. That class extends WC_Payment_Token (not WC_Payment_Token_CC) and has no get_card_type(), so the request is fatal:
PHP Fatal error: Uncaught Error: Call to undefined method
WooCommerce\PayPalCommerce\WcPaymentTokens\PaymentTokenPayPal::get_card_type()
in includes/class-trust-payments.php:572This was causing the client to lose sales.
We’ve patched it for now – I’m happy to share our patch with you, if you want to review it?
Paul
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.