Integrations · Payments and billing
PayPal
Lets the concierge check whether a PayPal payment went through, look up a transaction, and issue a full or partial refund.
Specified, built on request. This is what the PayPal connection does, written from PayPal’s own developer documentation. We build and test it with the first customer who asks. Ask for it.
What we ask of you
You create a REST API app in your PayPal Developer Dashboard and give us its client ID and secret. We never ask for your PayPal login.
- Log in to the PayPal Developer Dashboard (developer.paypal.com/dashboard) with your PayPal business account.
- Select 'Apps & Credentials'.
- Make sure you are looking at Live rather than Sandbox credentials.
- In the 'REST API apps' section, select 'Create App' and give it a name such as 'Usher concierge'. (New accounts also come with a 'Default Application', but a separate app is easier to switch off later.)
- Copy the client ID and client secret for the app and paste them into Usher.
We never ask for a password or an owner’s login.
The permissions it needs
| Permission | What it is for | Access |
|---|---|---|
https://uri.paypal.com/services/reporting/search/read | Search the account's transaction history (Transaction Search API) | Read only |
https://uri.paypal.com/services/payments/payment/authcapture | Show the details and status of a captured payment | Read only |
https://uri.paypal.com/services/payments/refund | Refund a captured payment and read refund details. Only if refunds are switched on | Can change |
What it can do
- See whether a payment succeededNeeds the PayPal capture (transaction) ID, usually stored on the order in the shop platform.Reads
- Look up a transactionstart_date and end_date are required; the range may be at most 31 days. A transaction can take up to three hours to appear. Covers the previous three years. Status codes: S success, P pending, D denied, V reversed.Reads
- Issue a refundIf no amount is given, the captured amount less previous refunds is refunded.Changes something
- Check a refundReads
Anything that changes something is off until you switch it on, and stays inside the limits you set.
What it cannot do
- Look up a customer's payments by email address: the Transaction Search filters are transaction ID, type, status, amount, currency, date, payment instrument type, store and terminal, not payer email. The concierge needs the transaction ID or must scan a date range.
- Confirm a payment made in the last few hours through Transaction Search, because transactions can take up to three hours to appear. The capture lookup by ID does not have this delay.
- Search more than 31 days in a single request, or further back than three years.
- Act for many merchants from a single Usher app without being in the PayPal partner network.
- PayPal subscriptions are not covered by this spec.
Limits and requirements
- PayPal does not publish rate limits. It may temporarily limit traffic it considers abusive and returns HTTP 429 with RATE_LIMIT_REACHED; it advises caching access tokens and not polling.
- Access tokens are obtained with POST /v1/oauth2/token (grant_type=client_credentials, client ID and secret as Basic auth) and expire; the response's expires_in gives the lifetime in seconds (the documented sample is 31668).
- Transaction Search: maximum date range 31 days per request, page_size maximum 500 (default 100), up to three hours' delay, three years of history.
- Third-party use: PayPal states that to use the Transaction Search API on behalf of third parties you must be part of the PayPal partner network, arranged through a partner manager. Acting for a merchant on the Payments API uses the PayPal-Auth-Assertion header and requires the merchant's consent to be established first.
- Sandbox and live credentials are separate; the sandbox base URL is https://api-m.sandbox.paypal.com.
Your customers’ data
Payer name, email address and PayPal payer ID; shipping address; transaction amounts, dates, status and item details where requested; refund records.
PayPal is a trademark of its owner. Usher is not affiliated with or endorsed by PayPal. Details are taken from its public developer documentation and may change; we confirm them when we build the connection.