How to skip an order confirmation page using ActiveMerchant and PayPal Express

Regarding PayPal documents, you can skip the order confirmation page and pay the PayPal customer. To do this, the " useraction " parameter must be set to " commit ". How can this be done using the ActiveMerchants setup_purchase method?

PayPal - setting up express check

+4
source share
1 answer

Got it. Just set the browse parameter to the redirect_url_for method to false. Example:

EXPRESS_GATEWAY.redirect_url_for(response.token, review: false) 
+8
source

All Articles