Getting Error!!
-
I am getting a fatal error anytime someone has chose to pay. For this scenario, I used an e-transfer which puts the order on hold. The other option is credit, and it marks it as processing. I have it set to authorize, as I must ensure I can fulfill the order before confirming.
As soon I hit “confirm” on woocommerce, it goes to this error page:
Fatal error: Uncaught Error: Call to undefined method WC_Gateway_BACS::capture_charge() in /home/jackof14/public_html/packnstackbins.ca/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php:238 Stack trace: #0 /home/jackof14/public_html/packnstackbins.ca/wp-includes/class-wp-hook.php(288): wc_stripe_order_status_completed(4340, Object(WC_Order)) #1 /home/jackof14/public_html/packnstackbins.ca/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #2 /home/jackof14/public_html/packnstackbins.ca/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/jackof14/public_html/packnstackbins.ca/wp-content/plugins/woocommerce/includes/class-wc-order.php(363): do_action(‘woocommerce_ord…’, 4340, Object(WC_Order)) #4 /home/jackof14/public_html/packnstackbins.ca/wp-content/plugins/woocommerce/includes/class-wc-order.php(221): WC_Order->status_transition() #5 /home/jackof14/public_html/packnstackbins.ca/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php in /home/jackof14/public_html/packnstackbins.ca/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php on line 238This is what the file of line 238 looks like. The last line here is line 238.
function wc_stripe_order_status_completed($order_id, $order) {
/**
*
* @var WC_Payment_Gateway_Stripe $gateway
*/
$gateway = WC ()->payment_gateways ()->payment_gateways ()[ $order->get_payment_method () ];
if (! $gateway->processing_payment) {
$gateway->capture_charge ( $order->get_total (), $order );How can I fix this asap?!!!
- The topic ‘Getting Error!!’ is closed to new replies.