We currently have limited customer service staffing due to Coronavirus (COVID-19) safety precautions. We encourage you to find quick answers to your questions by searching the community forum, visiting our Help Center, or messaging us (message response times will be delayed). Thank you for your patience.
I am using Paypal SDK Rest API which is https://github.com/paypal/PayPal-PHP-SDK and I want to switch live. I was testing the site on sandbox mode and it was doing fine. But I switched the account to live mode and a customer bought a product from site. The payment part was fine and all infos were set but the money didn't recieve to my account. Also there is no pending, waiting orders. What should I do now?
I do not get any error codes on website.
And this is my code for start.php
$clientId = 'client id for live';
$clientSecret = 'clientsecret for live';
* All default curl options are stored in the array inside the PayPalHttpConfig class. To make changes to those settings
* for your specific environments, feel free to add them using the code shown below
* Uncomment below line to override any default curl options.
// \PayPal\Core\PayPalHttpConfig::$defaultCurlOptions[CURLOPT_SSLVERSION] = CURL_SSLVERSION_TLSv1_2;
/** @var \Paypal\Rest\ApiContext $apiContext */
$apiContext = getApiContext($clientId, $clientSecret);
* Helper method for getting an APIContext for all calls
* @param string $clientId Client ID
* @param string $clientSecret Client Secret
* @return PayPal\Rest\ApiContext
function getApiContext($clientId, $clientSecret)
// #### SDK configuration
// Register the sdk_config.ini file in current directory
// as the configuration source.
// ### Api context
// Use an ApiContext object to authenticate
// API calls. The clientId and clientSecret for the
// OAuthTokenCredential class can be retrieved from
$apiContext = new ApiContext(
// Comment this line out and uncomment the PP_CONFIG_PATH
// 'define' block if you want to use static file
// based configuration
'mode' => 'sandbox',
'log.LogEnabled' => true,
'log.FileName' => '../PayPal.log',
'log.LogLevel' => 'DEBUG', // PLEASE USE `INFO` LEVEL FOR LOGGING IN LIVE ENVIRONMENTS
'cache.enabled' => true,