lib/mangopay/pay_in.rb in mangopay-3.5.0 vs lib/mangopay/pay_in.rb in mangopay-3.6.0
- old
+ new
@@ -128,11 +128,15 @@
module RecurringPayments
class Recurring < Resource
include HTTPCalls::Create
- def self.url(*)
- "#{MangoPay.api_path}/recurringpayinregistrations"
+ def self.url(*args)
+ if args.any?
+ "#{MangoPay.api_path}/recurringpayinregistrations/#{args.first}"
+ else
+ "#{MangoPay.api_path}/recurringpayinregistrations"
+ end
end
end
class CIT < Resource
include HTTPCalls::Create