Skip to content

null-none/paypal-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paypal-client

pip install paypal-client

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"]))

About

Simple client for PayPal RESTful APIs

Topics

Resources

License

Stars

Watchers

Forks

Languages