The Subscription class registers a function hook to process the payment of renewal orders, and in that function it calls a method that populates the fields to create the Pagar.me order via the API. This method sets the installments field to 1:
|
$fields['installments'] = 1; |
The behavior I expected was to use the same number of installments than in the parent order or previous renewal order, or that the customer might be able to choose the number of installments in the subscription details in their "my account" page.