What version of PHP is required to use the PayPal SDK for PHP?
PHP Requirements are as follows:
For more information regarding the PayPal SDK for PHP, go to GitHub.
- PHP 5.3 and above.
- cURL extension with support for OpenSSL.
- PHPUnit 3.5 for running test suite (optional).
For more information regarding the PayPal SDK for PHP, go to GitHub.
We’re sorry, the page you’re looking for is no longer available. Please try your search again in our Help Center if you have a question or want to contact us.
What can I do if I don't have root access and want to use the PayPal PHP SDK on my host?If you want to usethe PayPal PHP SDK on your host but dont have root access, you can use one of two alternatives for installing Pear (if your host cant do this for you). See the pear.php.net site for information on installing a local PEAR copy on a What are the minimum required fields I have to use in the PHP Web Console to make a Direct Payment API call?These are the minimum required fields: Provide a MerchantSessionID. On the Card Owner page, check the box for an address. On the Card Owner page, specify the Payer Country (United States) and Payer (must be a properly formatted email address). On the Address page, pass the Postal Code, How do I use PHP to integrate with Payflow Pro without using an SDK?The Payflow SDK is recommended for .NET and Java developers to simplify the Payflow Pro integration. Youll find additional examples on GitHub.How do I switch the PayPal PHP SDK from “Sandbox-enabled” to “Live”?Heres how: Set the mode of the SDK to Live in one of two ways: Via sdk_config.ini Via APIContext Enable the clientId and secret for the Live environment, because the Sandbox and Live versions behave very differently. Heres how: Log in to the PayPal Developer Portal. Click DASHBOARD. How do I set SDK logging levels for Java, .NET, and PHP?Set Java and .NET SDK logging levels Heres how: For the Java SDK, set the value of the level element in SDK_root/lib/log4j.properties. For the .NET SDK (console only), set the value of the level element in the SDK_root/bin/Console.exe.config file. If youre not using the console, copy the logging-related Why did I get "curl_exec error 6" with the PHP SDK?Issue You got a cURL error 6 message - Couldnt resolve host. Cause Version 7.10.x of cURL has a known bug that triggers a curl_exec 6 error. Solution Check your version of cURL. If necessary, upgrade to a recent version of cURL, such as 7.53.1. If you use Why did I get a fatal error when using the Call API button in the PHP SDK Web Console?Issue You got a fatal error message - Call to undefined function: getapiusername(). Cause The path for profile certificates is incorrectly specified. Solution Using the Web Console, change the path to the WebTester folder (this is a folder you have control over) and create a folder called tmp; How do I use the PHP SDK without command line access to install the package.xml file with Pear?Pear provides an easy way to install functionality and extend PHP. Unfortunately, many modules require you to have access to the command line, or to install modules directly to the Pear directory. Many web hosting companies dont provide this level of access, as the Pear directory is generally Do hosting service providers need to install the package.xml file of the PayPal PHP SDK package through Pear?As a hosting service provider, you have two options: Install the Pear package on any of your PHP-enabled servers immediately to provide access for all users on the server to the package. The key benefit is that as long as Pear is in the PHP include path, all Given an email or phone number, how do I check the status of a PayPal account using the PHP API?Important: Adaptive Payments is now a limited release product. It is restricted to select partners for approved use cases and should not be used for new integrations without guidance from PayPal. You can use the GetVerifiedStatus API to retrieve the status of a PayPal account. Youll need to Why did I get the error "curl_exec error 58: unable to set private key file" with the PHP SDK?Issue You got a private key file error. Causes This error usually occurs if: The file your code references doesnt contain the private key. When you request an API Certificate, PayPal gives it to you as a cert_key_pem.txt file. The file contains two parts: a private key and Is there an alternative to command-line access when setting up the PHP SDK samples?If you dont have command-line access to install the PHP SDK samples, heres how to manually set up the samples: Create a new file in: SDK_ROOT/samples/php/ Name this file ppsdk_include_path.inc Open this file and add the following: ?php set_include_path(path_to_sdk_root. DIRECTORY_SEPARATOR . lib . PATH_SEPARATOR . get_include_path()); ? Where How do I upgrade my PayPal SDK version for .NET?Upgrading SDK versions allows you to use the new features that PayPal has added to our web services. You can find complete information on updating your SDK as well as sample code onGitHub.Do I need to use PayPal SDKs to call PayPal APIs?No, you dont need to use PayPal SDKs to call PayPal APIs. However, the PayPal SDKs ease the task of calling PayPal Web Service APIs. They contain libraries that shield the user from the intricacies of the SOAP protocol, and offer a number of other useful features. You Why did I get the error "Class 'PayPal\Rest\ApiContext' not found" when using the PayPal SDK?Issue The PayPal SDK returned a class not found error. Cause The file path in the PHP SDK couldnt be found. Solution Use Composer to update the vendor folder; for example: require(vendor/autoload.php); $api = new \PayPal\Rest\ApiContext( new \PayPal\Auth\OAuthTokenCredential( $client_ID, $client_Secret ) ); $api-setConfig([ mode=sandbox, http.ConnectionTimeOut=30, log.LogEnabled=false, log.FileName=, log.LogLevel=FINE, What SDK do I use for Website Payments Pro UK?Because Website Payments Pro UK accounts are based on Payflow Pro, UK merchants can use the same SDKs as those used by the US and AU merchants for posting transactions via .NET, Java or via HTTPS (for example, PHP, Perl, Ruby, etc.). The UK Website Payments Pro uses How do I implement PayPal's Payflow Pro and Website Payments Pro Payflow Edition HTTPS interface?Users of Payflow Pro (US, AU) and Website Payments Pro Payflow Edition (UK) can use the HTTPS Interface to post directly to the Payflow Pro servers without installing an SDK. This allows them to use it with any operating system or language. PayPals Payflow Pro message protocol is How do I use the PayPal API (and PayPal Payments Pro) with the Classic ASP SDK?You can find allPayPal SDKs on the PayPal Developer Portal.How do I modify my IPN PHP listener to support HTTP1.1?Important: PayPal has required the use of HTTP 1.1 since October 2013. To modify your IPN PHP listener to support HTTP1.1, you need to include the Host and Connection headers in the IPN postback script. The following example shows how: PHP // post back to PayPal system to
Related articles are currently unavailable
Video is not available
You were logged out to help protect your account.