Registry / payments / paypal-checkout-serversdk

paypal-checkout-serversdk

JSON →
library1.0.3pypypi✓ verified 21d ago

The `paypal-checkout-serversdk` Python library is **deprecated** as of its last release (1.0.3 on October 24, 2023). PayPal has transitioned this and other older server-side SDKs to private/restricted access on GitHub, meaning they are no longer actively maintained or supported. For new integrations or migrating existing ones, PayPal recommends using the `paypal-server-sdk` Python library or integrating directly with the PayPal REST APIs.

pip install paypal-checkout-serversdk
INSTALL
IMPORT
SIG · PAYPAL-CHECKOUT-SE
P
paypal-checkout-serversdk
paymentspythonv1.0.3
Install
3.6s avg
Import
Disk
63MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 83.8MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.6s · import 0.000s · 40MB
63MB installed
● package 63MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

config
from paypalcheckoutsdk import config
from paypalcheckoutsdk import PaypalServersdkClient
find_packages
from paypalcheckoutsdk import find_packages
name
from paypalcheckoutsdk import name

This quickstart demonstrates how to initialize the **recommended replacement** `paypal-server-sdk` client. It retrieves API credentials from environment variables (`PAYPAL_CLIENT_ID` and `PAYPAL_CLIENT_SECRET`) and configures a client for the PayPal Sandbox environment. This setup allows you to begin making API calls to PayPal's REST APIs, such as creating or capturing orders.

import os import logging from paypal_serversdk_client import PaypalServersdkClient, ClientCredentialsAuthCredentials, Environment, LoggingConfiguration # NOTE: This quickstart is for the recommended replacement 'paypal-server-sdk', # as 'paypal-checkout-serversdk' is deprecated and should not be used. # Get credentials from environment variables for security client_id = os.environ.get('PAYPAL_CLIENT_ID', 'YOUR_PAYPAL_CLIENT_ID') client_secret = os.environ.get('PAYPAL_CLIENT_SECRET', 'YOUR_PAYPAL_CLIENT_SECRET') if not client_id or not client_secret: print("WARNING: PAYPAL_CLIENT_ID and PAYPAL_CLIENT_SECRET not found in environment variables.") print("Please set them or replace placeholders for actual API calls.") # Configure logging for the SDK (optional, but good practice) logging_config = LoggingConfiguration(log_level=logging.INFO) # Initialize the API client for the Sandbox environment # For production, use Environment.LIVE try: client = PaypalServersdkClient( client_credentials_auth_credentials=ClientCredentialsAuthCredentials( o_auth_client_id=client_id, o_auth_client_secret=client_secret ), environment=Environment.SANDBOX, # Or Environment.LIVE for production logging_configuration=logging_config ) print("PayPal Server SDK client initialized successfully (Sandbox environment).") print("You can now use 'client' to make API calls, e.g., client.orders_controller.create_order(...)") except Exception as e: print(f"Error initializing PayPal Server SDK client: {e}")
Debug
Known issues
breakingThe `paypal-checkout-serversdk` library is officially **deprecated** and no longer maintained. Its GitHub repository has been removed or transitioned to private access, meaning no further bug fixes, security updates, or new features will be provided. Continued use may lead to compatibility issues or security vulnerabilities.
fix
Migrate your integration to the `paypal-server-sdk` Python library (available via `pip install paypal-server-sdk`) or implement direct REST API calls using a library like `requests`.
affects: <=1.0.3
deprecatedPayPal ceased support and feature development for this SDK. Its last release was 1.0.3 on October 24, 2023, with a clear 'Deprecated' status on PyPI.
fix
Plan and execute a migration to the current generation of PayPal's server-side SDKs (e.g., `paypal-server-sdk`) or directly integrate with PayPal's REST APIs.
affects: All versions
gotchaThere are multiple PayPal Python SDKs, and it's easy to confuse them. `paypal-checkout-serversdk` is deprecated, as is the much older `paypalrestsdk`. The currently recommended official Python SDK is `paypal-server-sdk`. Ensure you are using the correct, supported library.
fix
Always verify the SDK's official status and recommended usage on the PayPal Developer website. For new projects, use `paypal-server-sdk`. For existing integrations with deprecated SDKs, prioritize migration.
affects: All versions
gotchaGitHub repository access for deprecated PayPal server-side SDKs, including this one, has been restricted. This means you may encounter issues with CI/CD pipelines or local development if they rely on direct GitHub access to the old repositories.
fix
Update your dependency management to use PyPI for installation or, ideally, migrate to `paypal-server-sdk` which has a public and maintained GitHub repository.
affects: All versions
Upgrade
Version history
1.0.3latest on PyPI · released Oct 24, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
Resources