• Resolved packnstack

    (@packnstack)


    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 238

    This 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?!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @packnstack,

    Thank you for reaching out. I will try to re-create the error and if we find an issue I will release an update immediately.

    Expect to hear back from me within an hour.

    Kind regards,

    Thread Starter packnstack

    (@packnstack)

    Wow, that would be great. Thank you for your prompt reply!

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @packnstack,

    I added a code change that will prevent this error in all cases. Can you contact us via our support form in the Stripe plugin’s settings so we can have you test before we release the update?

    Kind regards,

    Thread Starter packnstack

    (@packnstack)

    Sure thing, really appreciate this.

    Plugin Author Payment Plugins

    (@mrclayton)

    Version 3.0.3 released.

    Thread Starter packnstack

    (@packnstack)

    Thank you… all fixed!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Getting Error!!’ is closed to new replies.