Method: ActiveMerchant::Billing::InContextPaypalExpressGateway#redirect_url_for

Defined in:
lib/active_merchant/billing/gateways/in_context_paypal_express.rb

#redirect_url_for(token, options = {}) ⇒ Object

[View source] [View on GitHub]

7
8
9
10
11
12
# File 'lib/active_merchant/billing/gateways/in_context_paypal_express.rb', line 7

def redirect_url_for(token, options = {})
  options = { review: true }.update(options)
  url  = "#{redirect_url}?token=#{token}"
  url += '&useraction=commit' unless options[:review]
  url
end