class ActiveMerchant::Billing::InContextPaypalExpressGateway

Public Instance Methods

redirect_url_for(token, options = {}) click to toggle source
# 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