• Resolved hwsiew

    (@hwsiew)


    hi,

    May I know how subscription cancellation works? How admin or customer can cancel a subscription?

    Thanks

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

    (@mrclayton)

    Hi @hwsiew,

    Are you referring to the plugin’s built in subscription functionality or using WooCommerce Subscriptions? I will base my answer on the plugin’s built in functionality.

    To cancel a subscription as an admin, you would go to the subscription edit page located within the WordPress Admin panel. From there, you would change the subscription’s status to canceled. This will trigger a call to Braintree where the corresponding Braintree subscription will be canceled.

    As a customer, to cancel a subscription you would go to your My Account > Subscriptions > View Subscription page. From there the customer would click the “Cancel Subscription” link.

    Thanks,

    Thread Starter hwsiew

    (@hwsiew)

    Thanks for the response.

    And, does this plugin support api/hooks or any developer friendly support. For example, would it be possible to cancel/suspend subscription programmatically? Or any hook for after subscription cancellation?

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @hwsiew,

    The plugin supports programmatic cancellation. To cancel that way, you would call the $subscription->update_status('cancelled') method. That fires an action that the plugin is hooked in to and a call is made to Braintree to cancel the subscription.

    In our version 3.0.0 release which is due out in several weeks, we will provide updated developer documentation showing how you can customize the plugin.

    Kind Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How Cancelling Subscription Works?’ is closed to new replies.