Support » Plugin: WooCommerce Stripe Subscription Payment Gateway » Subscription not showing up in Account Page

  • Resolved sandeld

    (@sandeld)


    First of all, I’m doing this all in test mode so I’m not sure if that changes anything. So, onto my problems…

    I have a test account that purchased a subscription product. That subscription is shown as Active in Stripe. But when I log in to that test account on my website, it shows there are no active subscriptions.

    Active in Stripe:

    Missing in website account info:

    For that matter, the order doesn’t show up either:

    Upon further investigation, my hunch is that it’s because the order status in Woocommerce still shows “processing,” and my hunch is that it continues to be “processing” as long as the subscription is active. So that leads me to ask:

    • How can a user cancel their subscription?
    • This topic was modified 1 year, 8 months ago by  sandeld.
    • This topic was modified 1 year, 8 months ago by  sandeld.
    • This topic was modified 1 year, 8 months ago by  sandeld.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Another update:

    If I log in to Stripe and cancel a subscription from there, it doesn’t change anything back on my site. The order status remains at “processing.”

    Plugin Author wsspg

    (@wsspg)

    Hello,

    Sorry to hear you’re having trouble with Wsspg ! Let’s see if we can get this fixed for you.

    Unfortunately, I haven’t been able to reproduce the error you’re seeing.

    Do you have “My Account > Enable/Disable > View and Cancel Subscriptions” enabled in the Wsspg settings ?

    Thank you for using Wsspg !

    Plugin Author wsspg

    (@wsspg)

    I’m doing this all in test mode so I’m not sure if that changes anything

    It shouldn’t: all that changes between the two modes are the keys used in the API calls.

    That subscription is shown as Active in Stripe. But when I log in to that test account on my website, it shows there are no active subscriptions. For that matter, the order doesn’t show up either

    I have tested using a fresh install and I can’t reproduce this. Try turning on the ‘Debug’ option in the Wsspg settings (also enable DEBUG in WordPress), go through the process again and see if there’s anything in the log.

    Upon further investigation, my hunch is that it’s because the order status in Woocommerce still shows “processing,” and my hunch is that it continues to be “processing” as long as the subscription is active.

    Actually, the order status (immediately post checkout) is either ‘pending’ or ‘processing’, depending on whether the payment has been captured or merely authorized. An authorized payment can be captured by moving the order’s status from ‘pending’ to ‘processing’. Apart from that, the order status does not affect the subscription or charge in Stripe.

    How can a user cancel their subscription?

    Ordinarily, the user’s subscriptions are manageable through the ‘My Account’ section. But this is what we’re trying to fix for you 🙂

    If I log in to Stripe and cancel a subscription from there, it doesn’t change anything back on my site. The order status remains at “processing.”

    That’s correct. Why would editing a subscription in Stripe affect an order in WooCommerce ? The two are logically separate. However, canceling a subscription in Stripe will remove the subscription from a customer’s ‘Subscriptions’ tab in their ‘My Account’ section.

    Here’s my error log when logging into the account shown below and clicking on Subscriptions and Orders:

    [08-Nov-2017 10:56:35 UTC] [ error ][ subscriptions ][ req_FgpmiDtKxyI3A9 ]: stdClass Object
    (
    [type] => invalid_request_error
    [message] => You passed an empty string for ‘customer’. We assume empty values are an attempt to unset a parameter; however ‘customer’ cannot be unset. You should remove ‘customer’ from your request or supply a non-empty value.
    [param] => customer
    )

    //* *************************************************

    When I purchase a “simple” product, it shows up in my orders at the same screen where the subscription should, but does not, show up:

    I know you said the order status shouldn’t matter, but I just want to provide another datapoint that shows that “maybe” it actually does?

    Why would editing a subscription in Stripe affect an order in WooCommerce ?

    Because I’m using Wishlist Member to manage my membership site and when you use a fully integrated payment method (with Wishlist), canceling the payment also cancels the Wishlist Membership. But since Wishlist only uses PayPal to manage subscription payments, I went with you guys instead….which is not fully integrated and is causing me a lot of additional workarounds. Perhaps similar to this problem.

    Plugin Author wsspg

    (@wsspg)

    Because I’m using Wishlist Member to manage my membership site

    Aha. Unfortunately I do not support third-party plugins, so I will be marking this thread as resolved.

    FYI: you can use Wsspg standalone as a membership platform, using the ‘User roles’ field on individual Wsspg Subscription Products. Once a user has no active subscriptions in Stripe that are associated with those roles, the roles are removed from the user. Bonus: Wsspg is free.

    Thank you for using Wsspg !

    But this has nothing to do with the interaction with Wishlist.

    If I deactivate Wishslist and no longer use it, this problem still persists.

    Plugin Author wsspg

    (@wsspg)

    Have you tried a clean install ? As I say, it’s impossible to diagnose because I can’t reproduce the error, which appears to involve a plugin conflict.

    Ok, I figured out what my problem was and it now works, but I just have one last question that we started to discuss earlier.

    Now that the customer can manage and cancel their own subscription from their account page, why doesn’t the “Cancelled order” email from within Woocommerce get triggered? Or any other type of notification to the store owner? Or again do I just have something configured incorrectly?

    Thanks for all your time answering these questions and developing the plugin!

    Plugin Author wsspg

    (@wsspg)

    Hi !

    Really glad to hear that it’s working for you !

    Currently, Wsspg does not respond to Stripe webhook events. This feature is in development, but there isn’t a release schedule yet.

    However, canceling a subscription doesn’t necessarily mean that an order should change status to ‘Cancelled’. If the order has been paid, then it is a successful order. Once Wsspg is hooked up to Stripe events, subsequent subscription cycles will spawn a new order in WooCommerce. Therefore a subscription and an order are logically separate.

    I do agree with you that there should be a notification when a subscription is cancelled, though. I will add event notifications to the feature request list, and come back to this thread when I have an update for you.

    Many thanks for using Wsspg ! If you have a moment, please consider giving it a rating 🙂

    So, I made my own notification email using the Stripe webhooks, but it would still be very beneficial to include in the plugin if/when you have time. I really think building that bridge between Wsspg and Woocommerce (however that’s done) would really make this thing killer!

    Going to leave you rating and a review now!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Subscription not showing up in Account Page’ is closed to new replies.