lib/pagarme/subscription.rb in pagarme-1.9.3 vs lib/pagarme/subscription.rb in pagarme-1.9.4

- old
+ new

@@ -27,13 +27,14 @@ request = PagarMe::Request.new(self.url + '/cancel', 'POST') response = request.run update(response) end - def charge(amount) + def charge(amount, installments = 1) request = PagarMe::Request.new(self.url + '/transactions', 'POST') request.parameters = { :amount => amount, + :installments => installments } response = request.run request = PagarMe::Request.new(self.url, 'GET') update(request.run)