• Resolved Zade

    (@nothin7)


    Since April 5, 2023, all 14 of our new subscriptions have been Pending—they no longer become Active upon successful payment. Running PHP 8.2 with WordPress and all plugins up to date. I traced this problem to _wc_braintree_paypal_customer_id and _wc_braintree_paypal_payment_token being missing from the Subscription postmeta, despite existing for the Order postmeta. There’s a problem with the save_payment_meta() function in class-sv-wc-payment-gateway-integration-subscriptions.php, specifically the checks for $order->payment->token and $order->customer_id. These now return empty arrays, so update_post_meta() never runs. Will this be fixed in the next update of your plugin? We are a nonprofit and we’ve already lost about $1,500 due to this bug. Thank you.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Zade

    (@nothin7)

    Many apologies; I found the real problem: I had been using pre_get_posts() to exclude future posts and wcs_get_subscriptions_for_order() started returning 0 results after a WooCommerce Subscriptions update. I was thrown off by the fact that manually calling $order->customer_id returns an empty array.

    Thread Starter Zade

    (@nothin7)

    If anyone knows why the shop_subscription is given a post_date 6 hours ahead of the shop_order which generated it, I’m all ears.

    Plugin Support katerinaz – a11n

    (@katerinaz)

    Hey there @nothin7
    Hmmm… We are discussing this with our team internally and will get back to you once we have a verdict.
    Thank you for standing by in the meantime.

    Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    If anyone knows why the shop_subscription is given a post_date 6 hours ahead of the shop_order which generated it, I’m all ears.

    Looks like you’ve marked this as resolved, but if you need further assistance with the same, please reach out to us via a support ticket.

    Support for?WooCommerce Subscriptions?is provided at https://woocommerce.com/my-account/create-a-ticket/?form=ticket.

    Please login to WooCommerce.com with the account you’ve used to purchase
    WooCommerce Subscriptions, select WooCommerce Subscriptions from the dropdown so that the query ends up in the right queue.

    If you’re using a third party extension to get this done, please get in touch with their plugin support team directly.

    If you have any other questions about Braintree for WooCommerce, please start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URGENT: Subscriptions no longer become Active’ is closed to new replies.