Declined card throws 500 error
-
When adding a credit card to account, url: /my-account/add-payment-method
Using one of stripe’s test cards, specifically 4000000000000002, which “Charge will be declined with a card_declined code.”This throws a PHP fatal error of
[27-Sep-2016 20:11:49 UTC] PHP Fatal error: Uncaught exception ‘Exception’ with message ‘Your card was declined.’ in /nas/content/live/test2findcra/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:544
Stack trace:
#0 /nas/content/live/test2findcra/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(369): WC_Gateway_Stripe->add_payment_method()
#1 [internal function]: WC_Form_Handler::add_payment_method_action(Object(WP))
#2 /nas/content/live/test2findcra/wp-includes/plugin.php(600): call_user_func_array(Array, Array)
#3 /nas/content/live/test2findcra/wp-includes/class-wp.php(738): do_action_ref_array(‘wp’, Array)
#4 /nas/content/live/test2findcra/wp-includes/functions.php(963): WP->main(”)
#5 /nas/content/live/test2findcra/wp-blog-header.php(16): wp()
#6 /nas/content/live/test2findcra/index.php(17): require(‘/nas/content/li…’)
#7 {main}
thrown in /nas/content/live/test2findcra/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php on line 544Running Stripe Gateway 3.0.2 in test mode.
This does not happen on checkout page when testing declined card.
The topic ‘Declined card throws 500 error’ is closed to new replies.