PayPal
Payments Client id and secretCreate and capture orders, issue refunds, and manage subscriptions and invoices in PayPal from any Windmill script, flow or app.
Set up in 3 steps
Create a REST app
At developer.paypal.com, open Apps & Credentials and create a REST API app. Copy its client id and secret — switch the Sandbox and Live toggle to get the pair you want.
Add the resource in Windmill
Open Resources, add a resource of type paypal, and fill clientId and clientSecret.
Run your first script
Fork any script below and read before writing anything. There are dozens here, so search by the verb you need.
Scripts
Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.
Get user info
Void authorized payment
Update web experience profile
Update subscription
Update product
Update pricing
Update plan
Update order
Update or cancel tracking information for a PayPal order
Update or cancel tracking information for PayPal transaction
Update dispute status
Suspend subscription
Show web experience profile details by ID
Show tracking information
Show template details
Show subscription details
Show refund details
Show referral data
Show product details
Show plan details
Show payout item details
Show payout batch details
Show order details
Show invoice details
Show dispute details
Show details for authorized payment
Show captured payment details
Settle dispute
Send message about dispute to other party
Send invoice reminder
Resource type
paypal — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| clientId | string | Yes | |
| clientSecret | string | Yes |
Questions
Why a pair and not a token?
The scripts exchange these two for a short-lived token on each run, so nothing expires in the resource and there is nothing to rotate by hand.
Sandbox or live?
The credentials decide, and the two environments never mix. Keep a resource for each and switch the one a flow points at.
Are my credentials stored on the hub?
Never. They live only in your own Windmill workspace, encrypted at rest.