Subscription cancellation notification, or action

This topic contains 5 replies, has 3 voices, and was last updated by  Patrik 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #3201

    TLN
    Buyer
    Post count: 131

    Hi Guys,

    Shouldn’t something happen when someone cancels their listing subscription on WP Invoicing?

    1) The listing remains active
    2) The Stripe subscription remains active
    3) The admin is not notified of the cancellation

    I am hoping to at least receive an email as admin, that a user canceled their subscription so I can manually remove the listing and also delete the Stripe notification. This is the least that should happen IMO. Ideally of course, the listing would be unpublished and the Stripe subscription would be canceled automatically by your plugin.

    If possible, I would like to at least have a way to hook into the cancellation so I can send myself an email (as a way to remind myself to manually remove the listing and remove the subscription with Stripe or PayPal).

    Any help you can provide is appreciated!

    Thank you!

    #3202

    TLN
    Buyer
    Post count: 131

    Upon checking I see that WP Invoicing attempted to delete the Stripe subscription, but it failed.

    Also, shouldn’t the listing become unpublished?

    #3203

    TLN
    Buyer
    Post count: 131

    Here’s the error log from Stripe:

    DELETE /v1/subscriptions/sub_F20tq2C1vq2XCP

    ID req_uMNEYh1eqyBwJ0
    Time
    2019/06/22 12:09:31
    Method
    DELETE
    URL
    /v1/subscriptions/sub_F20tq2C1vq2XCP
    Status
    400
    IP address
    69.163.212.144
    Version
    2019-03-14
    Source
    Stripe/v1 PhpBindings/4.1.1
    Related
    subscription — sub_F20tq2C1vq2XCP

    {
    “error”: {
    “code”: “parameter_unknown”,
    “doc_url”: “https://stripe.com/docs/error-codes/parameter-unknown”,
    “message”: “Received unknown parameter: at_period_end”,
    “param”: “at_period_end”,
    “type”: “invalid_request_error”
    }
    }

    #3206

    Guust
    Moderator
    Post count: 29970

    I have asked a developer to have a look at your question after the weekend.
    Thanks

    #3207

    TLN
    Buyer
    Post count: 131

    Thanks Guust. Much appreciated as always.

    #3209

    Patrik
    Moderator
    Post count: 1971

    Hi,

    It seems the parameter “at_period_end” is removed from this function so need to remove. We will fix it and update in next release. Thank you for pointing us to this issue. You can use “wpinv_recurring_cancel_stripe_subscription” or “wpinv_subscription_cancelled” hook when subscription cancel by a user. We will put more hooks if needed.

    Regards,
    Patrik

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket