class Express::Checkout::Response
Attributes
mobile[RW]
pay_on_paypal[RW]
Public Class Methods
new(response, options = {})
click to toggle source
Calls superclass method
# File lib/express/checkout/response.rb, line 6 def initialize(response, options = {}) super response @pay_on_paypal = options[:pay_on_paypal] @mobile = options[:mobile] end
Public Instance Methods
popup_uri()
click to toggle source
# File lib/express/checkout/response.rb, line 18 def popup_uri endpoint = URI.parse Express.popup_endpoint endpoint.query = query.to_query endpoint.to_s end
redirect_uri()
click to toggle source
# File lib/express/checkout/response.rb, line 12 def redirect_uri endpoint = URI.parse Express.endpoint endpoint.query = query(:with_cmd).to_query endpoint.to_s end
Private Instance Methods
query(with_cmd = false)
click to toggle source
# File lib/express/checkout/response.rb, line 26 def query(with_cmd = false) _query_ = {:token => self.token} _query_.merge!(:cmd => '_express-checkout') if with_cmd _query_.merge!(:cmd => '_express-checkout-mobile') if mobile _query_.merge!(:useraction => 'commit') if pay_on_paypal _query_ end