lib/mangopay.rb in mangopay-3.0.9 vs lib/mangopay.rb in mangopay-3.0.10
- old
+ new
@@ -25,10 +25,11 @@
require 'mangopay/preauthorization'
require 'mangopay/card'
require 'mangopay/event'
require 'mangopay/kyc_document'
require 'mangopay/hook'
+require 'mangopay/refund'
module MangoPay
class Configuration
attr_accessor :preproduction, :root_url,
@@ -126,10 +127,10 @@
end
def self.request_headers
auth_token = MangoPay::AuthorizationToken::Manager.get_token
headers = {
- 'user_agent' => "MangoPay V1 RubyBindings/#{MangoPay::VERSION}",
+ 'user_agent' => "MangoPay V2 RubyBindings/#{MangoPay::VERSION}",
'Authorization' => "#{auth_token['token_type']} #{auth_token['access_token']}",
'Content-Type' => 'application/json'
}
begin
headers.update('x_mangopay_client_user_agent' => MangoPay::JSON.dump(user_agent))