Class: PayPal::ExpressCheckout::Response::Authorization
- Defined in:
- lib/paypal/express_checkout/response/authorization.rb
Constant Summary
Constants included from Fields
Fields::ASSOCIATIONS, Fields::ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#pending? ⇒ Boolean
mapping( :authorization_id => :AUTHORIZATIONID, :transaction_id => :TRANSACTIONID, :amount => :AMT, :msg_sub_id => :MSGSUBID, :payment_status => :PAYMENTSTATUS, :pending_reason => :PENDINGREASON, :protection_eligibility => :PROTECTIONELIGIBILITY, :protection_eligibility_type => :PROTECTIONELIGIBILITYTYPE ).
Methods inherited from Base
#build_association, #build_billings, #build_fmfs, #build_payment_items, #build_payments, #build_shipping_options, #build_values, #errors, #initialize, #params, #success?, #valid?
Methods included from Utils
Methods included from Fields
#field_map, #group_collect, #group_fields, #has_fields?, #has_many?, included, #inverted_field_map
Constructor Details
This class inherits a constructor from PayPal::ExpressCheckout::Response::Base
Instance Method Details
#pending? ⇒ Boolean
mapping(
:authorization_id => :AUTHORIZATIONID,
:transaction_id => :TRANSACTIONID,
:amount => :AMT,
:msg_sub_id => :MSGSUBID,
:payment_status => :PAYMENTSTATUS,
:pending_reason => :PENDINGREASON,
:protection_eligibility => :PROTECTIONELIGIBILITY,
:protection_eligibility_type => :PROTECTIONELIGIBILITYTYPE
)
18 19 20 |
# File 'lib/paypal/express_checkout/response/authorization.rb', line 18 def pending? payment_status == 'Pending' end |