View source: R/subscriptions.R
paddle_cancel_subscription | R Documentation |
Cancels a subscription using its ID. Defaults to cancel at next billing period unless 'effective_from' is set to "immediately".
paddle_cancel_subscription(id, effective_from = NULL)
id |
Character. Required. Paddle subscription ID, e.g. "sub_abc123". |
effective_from |
Character or NULL. Optional. One of '"next_billing_period"' or '"immediately"'. Defaults to '"next_billing_period"'. |
A list with the updated subscription entity and metadata.
set_paddle_mode("sandbox")
result <- paddle_cancel_subscription(
id = "sub_123",
effective_from = "immediately"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.