Class: Paypal::Express::Response
- Inherits:
-
NVP::Response
- Object
- Base
- NVP::Response
- Paypal::Express::Response
- Defined in:
- lib/paypal/express/response.rb
Instance Attribute Summary collapse
-
#mobile ⇒ Object
Returns the value of attribute mobile.
-
#pay_on_paypal ⇒ Object
Returns the value of attribute pay_on_paypal.
Attributes inherited from NVP::Response
#amount, #bill_to, #billing_agreement, #description, #insurance_option_selected, #items, #payer, #payment_info, #payment_responses, #recurring, #refund, #ship_to, #shipping_options_is_default, #success_page_redirect_requested
Instance Method Summary collapse
-
#initialize(response, options = {}) ⇒ Response
constructor
Paypal::Express::Response.new() response = { :ACK=>“Success”, :BUILD=>“1721431”, :CORRELATIONID=>“5549ea3a78af1”, :TIMESTAMP=>“2011-02-02T02:02:18Z”, :TOKEN=>“EC-5YJ90598G69065317”, :VERSION=>“66.0” }.
- #popup_uri ⇒ Object
- #redirect_uri ⇒ Object
Methods inherited from NVP::Response
Methods included from Util
#==, formatted_amount, #numeric_attribute?, to_numeric
Constructor Details
#initialize(response, options = {}) ⇒ Response
Paypal::Express::Response.new() response =
:ACK=>"Success",
:BUILD=>"1721431",
:CORRELATIONID=>"5549ea3a78af1",
:TIMESTAMP=>"2011-02-02T02:02:18Z",
:TOKEN=>"EC-5YJ90598G69065317",
:VERSION=>"66.0"
15 16 17 18 19 |
# File 'lib/paypal/express/response.rb', line 15 def initialize(response, = {}) super response @pay_on_paypal = [:pay_on_paypal] @mobile = [:mobile] end |
Instance Attribute Details
#mobile ⇒ Object
Returns the value of attribute mobile.
4 5 6 |
# File 'lib/paypal/express/response.rb', line 4 def mobile @mobile end |
#pay_on_paypal ⇒ Object
Returns the value of attribute pay_on_paypal.
4 5 6 |
# File 'lib/paypal/express/response.rb', line 4 def pay_on_paypal @pay_on_paypal end |
Instance Method Details
#popup_uri ⇒ Object
27 28 29 30 31 |
# File 'lib/paypal/express/response.rb', line 27 def popup_uri endpoint = URI.parse Paypal.popup_endpoint endpoint.query = query.to_query endpoint.to_s end |