Undefined array key “stripe_afterpay”
-
Hi dear support,
I get the following errors: Undefined array key “stripe_afterpay” and Undefined array key “stripe_affirm”
Plugin: Payment Plugins for Stripe WooCommerce
File: /wp-content/plugins/woo-stripe-payment/src/Messages/BNPL/AbstractBNPLMessageController.php
Line: 29Recent Code on this line:
$gateway = $payment_gateways[ $id ];
Suggestion for bugfix:
if ( array_key_exists( $id, $payment_gateways ) ) {
$gateway = $payment_gateways[ $id ];
} else {
// Handle the error – for example, trigger an exception or log a message.
}
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Undefined array key “stripe_afterpay”’ is closed to new replies.