Class: Paysafe::Api::CardPaymentsApi
- Inherits:
-
BaseApi
- Object
- BaseApi
- Paysafe::Api::CardPaymentsApi
show all
- Defined in:
- lib/paysafe/api/card_payments_api.rb
Constant Summary
Constants inherited
from BaseApi
BaseApi::HEADERS
Instance Method Summary
collapse
Methods inherited from BaseApi
#initialize
Instance Method Details
#create_authorization(**data) ⇒ Object
5
6
7
|
# File 'lib/paysafe/api/card_payments_api.rb', line 5
def create_authorization(**data)
perform_post_with_object("/cardpayments/v1/accounts/#{account_number}/auths", data, Authorization)
end
|
#create_verification(**data) ⇒ Object
9
10
11
|
# File 'lib/paysafe/api/card_payments_api.rb', line 9
def create_verification(**data)
perform_post_with_object("/cardpayments/v1/accounts/#{account_number}/verifications", data, Verification)
end
|
#get_authorization(id:) ⇒ Object
13
14
15
|
# File 'lib/paysafe/api/card_payments_api.rb', line 13
def get_authorization(id:)
perform_get_with_object("/cardpayments/v1/accounts/#{account_number}/auths/#{id}", Authorization)
end
|
#get_verification(id:) ⇒ Object
17
18
19
|
# File 'lib/paysafe/api/card_payments_api.rb', line 17
def get_verification(id:)
perform_get_with_object("/cardpayments/v1/accounts/#{account_number}/verifications/#{id}", Verification)
end
|