lib/mangopay/pay_in.rb in mangopay-3.0.20 vs lib/mangopay/pay_in.rb in mangopay-3.0.21
- old
+ new
@@ -57,9 +57,17 @@
def self.url(*)
"#{MangoPay.api_path}/payins/directdebit/#{CGI.escape(class_name.downcase)}"
end
end
+ # See https://docs.mangopay.com/api-references/payins/direct-debit-pay-in-direct/
+ class Direct < Resource
+ include HTTPCalls::Create
+ def self.url(*)
+ "#{MangoPay.api_path}/payins/directdebit/#{CGI.escape(class_name.downcase)}"
+ end
+ end
+
end
end
end