• Resolved hariwebstein

    (@hariwebstein)


    we use this plugin in our dev site.
    https://woocommerce.com/products/woocommerce-subscriptions/
    when we try to do renewal using stripe credit card payment method we got this error log

    thrown in /var/www/elevatebio.com.au/htdocs/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php on line 544
    [13-May-2024 07:28:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Payment_Token_CC::get_payment_method_title() in /var/www/elevatebio.com.au/htdocs/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php:544


    this issue only happen on version 3.3.62 I just revert back to 3.3.60 to temporary make it work, please help to check

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @hariwebstein

    Are you manually processing this renewal via the Subscription Details page within WooCommerce? Or is this renewal being triggered automatically?

    Kind Regards

    Plugin Author Clayton R

    (@mrclayton)

    @hariwebstein

    The class WC_Payment_Token_CC is not one that originates from this plugin. Credit Card payment methods from this plugin use the format WC_Payment_Token_Stripe_CC.

    Check your woocommerce_payment_tokens table for double entries, using the token key for the Stripe payment method ID.

    Kind Regaerds

    Thread Starter hariwebstein

    (@hariwebstein)

    “Are you manually processing this renewal via the Subscription Details page within WooCommerce? Or is this renewal being triggered automatically?”
    I do it manually from detail page.
    I try disable all plugin except WooCommerce, payment and subscription and still got the issue,
    I activate again, test renewal again using paypal and googlepay payment method, and its working well.
    so, I think the issue in in the plugin as it working in the previous version and also working using gpay and paypal..
    note: I use test mode.

    can you try test on your end?

    Plugin Author Clayton R

    (@mrclayton)

    @hariwebstein Please see my previous reply where I asked you to check if you had a duplicate entry for the payment method in your woocommerce_payment_tokens table.

    Thanks

    Plugin Author Clayton R

    (@mrclayton)

    @hariwebstein Here is a visual which I think will be helpful. I suspect you have multiple entries in your WooCommerce payment tokens table.

    Notice in the screenshot below, the type value is CC for one entry and Stripe_CC for the other. The entry Stripe_CC is for this plugin. I believe the query for the payment token is finding the first entry and the incorrect payment method class is being initialized.

    That is why I’d like you to check if you have duplicate entries in your payment tokens table.

    Kind Regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Woocommerce subscriptions renewal issue’ is closed to new replies.