PayPal component
goToPay(array $fields = array())
Interface to redirect a user to the PayPal custom-cart payment page to collect funds via PayPal. The $fields arguments are sent to PayPal and should match the PayPal API; many have default values set to simplify usage. The PAYPAL_EMAIL constant must be set in the .config file to use this method. An action that calls this method does not need a view.
$useSandbox property
Default is false, setting to true will use the sandbox- the PayPal testing interface that does not transfer any funds. Be sure NOT to set this to true on a production e-commerce site!


