Class: PayPal::SDK::AdaptiveAccounts::API
- Inherits:
-
Core::API::Platform
- Object
- Core::API::Platform
- PayPal::SDK::AdaptiveAccounts::API
- Includes:
- Services
- Defined in:
- lib/paypal-sdk/adaptive_accounts/api.rb
Constant Summary collapse
- ADAPTIVE_ACCOUNTS_HTTP_HEADER =
{ "X-PAYPAL-REQUEST-SOURCE" => "adaptiveaccounts-ruby-sdk-#{VERSION}" }
Instance Method Summary collapse
- #default_http_header ⇒ Object
-
#initialize(environment = nil, options = {}) ⇒ API
constructor
A new instance of API.
-
#ipn_valid?(raw_post_data) ⇒ Boolean
Validate IPN message.
Methods included from Services
#AddBankAccount, #AddPaymentCard, #BuildAddBankAccount, #BuildAddPaymentCard, #BuildCheckComplianceStatus, #BuildCreateAccount, #BuildGetUserAgreement, #BuildGetVerifiedStatus, #BuildSetFundingSourceConfirmed, #CheckComplianceStatus, #CreateAccount, #GetUserAgreement, #GetVerifiedStatus, #SetFundingSourceConfirmed
Constructor Details
#initialize(environment = nil, options = {}) ⇒ API
Returns a new instance of API.
9 10 11 |
# File 'lib/paypal-sdk/adaptive_accounts/api.rb', line 9 def initialize(environment = nil, = {}) super(SERVICE_NAME, environment, ) end |
Instance Method Details
#default_http_header ⇒ Object
14 15 16 |
# File 'lib/paypal-sdk/adaptive_accounts/api.rb', line 14 def default_http_header super.merge(ADAPTIVE_ACCOUNTS_HTTP_HEADER) end |
#ipn_valid?(raw_post_data) ⇒ Boolean
Validate IPN message
19 20 21 |
# File 'lib/paypal-sdk/adaptive_accounts/api.rb', line 19 def ipn_valid?(raw_post_data) Core::API::IPN.valid?(raw_post_data, config) end |