Plan-based recurring subscriptions.
These are the same /preapproval endpoints Mercadopago.Preapproval exposes;
this module exists so the name matches the reference Ruby SDK, where
sdk.subscription was added in 3.3.0 alongside sdk.preapproval. Every
function here delegates — pick whichever name reads better at the call site.
A subscription ties a payer to a Mercadopago.PreapprovalPlan, so create/3
expects a preapproval_plan_id in the body.
Summary
Functions
Creates a subscription from subscription_data.
Fetches a subscription by id.
Searches subscriptions matching filters (query-string parameters).
Streams every result of search/3. See Mercadopago.Pagination.stream/3.
Updates a subscription (e.g. to pause, resume or cancel it).
Functions
Creates a subscription from subscription_data.
Fetches a subscription by id.
Searches subscriptions matching filters (query-string parameters).
Streams every result of search/3. See Mercadopago.Pagination.stream/3.
Updates a subscription (e.g. to pause, resume or cancel it).