Skip to main content

PayPal API provides simple client for RESTful APIs

Project description

paypal-client

pip install paypal-rest-api

Example

from paypal_client.api import PayPal

paypal = PayPal(APP_CLIENT_ID, APP_SECRET)

product = paypal.create_product(name="Video Streaming Service", description="Video Streaming Service basic plan", type="SERVICE")
plan = paypal.create_plan(product_id=product["id"], name="Video Streaming Service Plan", description="Video Streaming Service basic plan", frequency="MONTH", price=10)
subscription = paypal.create_subscription(plan_id=plan["id"])
print(paypal.show_subscription_details(subscription["id"]))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

paypal_rest_api-0.1.6.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paypal_rest_api-0.1.6-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file paypal_rest_api-0.1.6.tar.gz.

File metadata

  • Download URL: paypal_rest_api-0.1.6.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for paypal_rest_api-0.1.6.tar.gz
Algorithm Hash digest
SHA256 bf33a5760206291d6f533adfd7087df53e5284454efb1b3709bc98c6b9198afd
MD5 130ea5c9a26b5b328702191d238aef25
BLAKE2b-256 e74ffee1adfc1a70ee17d4c932c85b44141dfbcb39c4ef14db7995b6142a953a

See more details on using hashes here.

File details

Details for the file paypal_rest_api-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for paypal_rest_api-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 68390da02e231641aed4809f93c71c5efb38a1da33b36facb41a946e52c03162
MD5 5b3cc54e492c15ac1d367ead3286b89e
BLAKE2b-256 ff75ad9583ff6e68ead937836a8cf7c1d975e8fb1c318cbc5d9239299c6fb516

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page