LimeLight.Webhooks.Subscription (Peacemaker v3.3.5-rc.7) View Source

Handles webhooks sent from LimeLight concerning Premium-level subscriptions.

Link to this section Summary

Functions

Renews account permissions associated with the customer.

Link to this section Functions

Link to this function

renew_subscription(limelight_webhook_params)

View Source

Renews account permissions associated with the customer.

Given an email, order_id, and customer_id, will renew the permissions for the account. Sets the account's role to :premium

If an active subscription plan exists, will set the next recurring bill date to the start date for their next billing cycle under the new offer.