So I replaced the code above and tried to checkout with the prepaid MC in test mode a couple of times.
Both times the payment went through, so I went to the error_log file and found this:
[29-Aug-2017 15:09:20 UTC] prepaid_filtering
[29-Aug-2017 15:09:20 UTC] PHP Warning: Module ‘redis’ already loaded in Unknown on line 0
[29-Aug-2017 15:09:21 UTC] PHP Warning: Module ‘redis’ already loaded in Unknown on line 0
[29-Aug-2017 15:09:22 UTC] PHP Warning: Module ‘redis’ already loaded in Unknown on line 0
[29-Aug-2017 15:09:24 UTC] prepaid_filtering
[29-Aug-2017 15:09:25 UTC] PHP Warning: Module ‘redis’ already loaded in Unknown on line 0
[29-Aug-2017 15:09:35 UTC] status was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_Stripe_Addons->process_payment, WC_Gateway_Stripe->process_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Subscriptions_Order::maybe_record_subscription_payment, apply_filters(‘woocommerce_payment_complete_order_status’), WP_Hook->apply_filters, call_user_func_array, sp_autocomplete_paid_virtual_orders, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
I am using WooCommerce Stripe Gateway (Version 3.2.3) and I’m using API version 2017-08-15 in my Stripe Dashboard.
-
This reply was modified 7 years, 6 months ago by
Marc.