Skip to main content
Reactivates a subscription that was paused due to failed charges. The function re-approves the token allowance and immediately attempts to charge the overdue period. If the charge succeeds, the subscription returns to Active status.

Parameters


Authorization

Only the subscriber can reactivate their own subscription. The subscriber’s signature covers both the reactivate() call and the nested token.approve() to refresh the allowance.

Return value

Result<bool> - true if the immediate charge succeeded, false if it did not (e.g., still insufficient balance). The subscription is reactivated regardless - the charge attempt is best-effort.

Events emitted

Additional events may be emitted from the implicit charge attempt (charge_ok or charge_fail).

Error cases


Examples

Before reactivating, make sure the subscriber’s wallet has sufficient USDC balance. The reactivation will re-approve the token allowance and immediately attempt to charge the overdue period. If the balance is still insufficient, the subscription returns to Active status but the charge will fail again on the next charge() call.