Class: PayLane::RecurringPayment
- Inherits:
-
Object
- Object
- PayLane::RecurringPayment
- Defined in:
- lib/paylane/recurring_payment.rb
Instance Method Summary collapse
- #charge_card(amount) ⇒ Object
-
#initialize(previous_sale_id, options = {}) ⇒ RecurringPayment
constructor
A new instance of RecurringPayment.
Constructor Details
#initialize(previous_sale_id, options = {}) ⇒ RecurringPayment
Returns a new instance of RecurringPayment.
3 4 5 6 7 8 9 |
# File 'lib/paylane/recurring_payment.rb', line 3 def initialize(previous_sale_id, = {}) gateway = Gateway.new(PayLane.login, PayLane.password) @api = API.new(gateway.connect) @previous_sale_id = previous_sale_id @options = @product = Product.new @options[:product] end |