Module: MuckCommerce::PaypalMethods

Defined in:
lib/muck-commerce/share/paypal_methods.rb

Instance Method Summary collapse

Instance Method Details

#expressObject



5
6
7
8
9
10
11
12
# File 'lib/muck-commerce/share/paypal_methods.rb', line 5

def express
  response = OrderTransaction.paypal_express_gateway.setup_authorization(@cart.total,
    :ip                => request.remote_ip,
    :return_url        => build_paypal_express_return_url,
    :cancel_return_url => build_paypal_express_cancel_url
  )
  redirect_to OrderTransaction.paypal_express_gateway.redirect_url_for(response.token)
end