Going Live - paypal/PayPal-PHP-SDK GitHub Wiki
In order to point your application to live payments to PayPal API endpoints, you need to follow two steps:
1. Get the live credentials
Enable Live Credentials for the appropriate service, by completing the process on your developer dashboard -> Your App as shown below.
2. Set your configurations
- If using sdk_config.ini, add
mode = livein the[Service]section (a complete example can be found here):
...
;Service Configuration
[Service]
; can be set to sandbox / live
mode = live
...
- If using code based configurations, add
modeas follows:
$apiContext->setConfig(
array(
...
'mode' => 'live',
...
)
);
3. Profit ...
... with PayPal !