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. To search again or contact us, please visit our Help Centre.
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 use the PayPal PHP SDK on your host but don't have root access, you can use one of two alternatives for installing Pear (if your host can't 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. You'll find additional examples on GitHub.How do I switch the PayPal PHP SDK from “Sandbox-enabled” to “Live”?Here’s 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. Here's how: Log in to the PayPal Developer Portal. Click DASHBOARD. Why did I get "curl_exec error 6" with the PHP SDK?Issue You got a cURL error 6 message - Couldn't 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 How do I set SDK logging levels for Java, .NET, and PHP?Set Java and .NET SDK logging levels Here's 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 you're not using the console, copy the logging-related 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 don't 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. You’ll 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 doesn't 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 don't have command-line access to install the PHP SDK samples, here's 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()); ?> 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 on GitHub.Do I need to use PayPal SDKs to call PayPal APIs?No, you don't 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 couldn't 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 ) ); Why can’t I make a payment with my American Express card?PayPal currently doesn't support the following currencies when a payment is made using an American Express card: Brazil Real (BRL) Israel Shekel (ILS) Malaysian Ringgit (MYR) Mexico Peso (MXN) Philippine Peso (PHP) South African Rand (ZAR) New Taiwan Dollar (TWD) Thai Baht (THB) Turkey Lira (TRY) To continue 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. PayPal’s Payflow Pro message protocol is How do I use the PayPal API (and PayPal Payments Pro) with the Classic ASP SDK?You can find all PayPal SDKs on the PayPal Developer Portal.
Related articles are currently unavailable
Video is not available
You were logged out to help protect your account.