lib/mangopay/pre_authorization.rb in mangopay-3.0.19 vs lib/mangopay/pre_authorization.rb in mangopay-3.0.20
- old
+ new
@@ -3,11 +3,11 @@
# See http://docs.mangopay.com/api-references/payins/preauthorized-payin/
class PreAuthorization < Resource
include HTTPCalls::Update
include HTTPCalls::Fetch
- def self.create(params)
- MangoPay.request(:post, "#{url}/card/direct", params)
+ def self.create(params, idempotency_key = nil)
+ MangoPay.request(:post, "#{url}/card/direct", params, {}, idempotency_key)
end
end
end