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)
-
- (Object) pay_on_paypal
Returns the value of attribute pay_on_paypal.
Attributes inherited from NVP::Response
#amount, #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)
-
- (Response) initialize(response, options = {})
constructor
A new instance of Response.
- - (Object) popup_uri
- - (Object) redirect_uri
Methods included from Util
#==, formatted_amount, #numeric_attribute?, to_numeric
Constructor Details
- (Response) initialize(response, options = {})
A new instance of Response
6 7 8 9 |
# File 'lib/paypal/express/response.rb', line 6 def initialize(response, = {}) super response @pay_on_paypal = [:pay_on_paypal] end |
Instance Attribute Details
- (Object) pay_on_paypal
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
- (Object) popup_uri
17 18 19 20 21 |
# File 'lib/paypal/express/response.rb', line 17 def popup_uri endpoint = URI.parse Paypal.popup_endpoint endpoint.query = query.to_query endpoint.to_s end |
- (Object) redirect_uri
11 12 13 14 15 |
# File 'lib/paypal/express/response.rb', line 11 def redirect_uri endpoint = URI.parse Paypal.endpoint endpoint.query = query(:with_cmd).to_query endpoint.to_s end |