Integrations
PayPal
Set up PayPal OAuth for payment processing and account access
Overview
Section titled “Overview”Connect the application’s users to PayPal for payment processing, account information, and financial transaction data.
| Property | Value |
|---|---|
| Provider ID | paypal |
| Category | Payments |
| PKCE | Supported |
| Token refresh | Automatic |
| Environments | Production and Sandbox |
| Redirect URI | Shown in Developer Portal |
Sandbox vs production
Section titled “Sandbox vs production”PayPal runs its sandbox on different OAuth endpoints, not just different API hosts. A sandbox client ID and secret are valid only against the sandbox, and live credentials only against production — they are not interchangeable.
Pick the environment when you configure the provider:
- Developer Portal — an Environment selector appears on the PayPal configuration form.
- CLI — pass
--environment sandbox:
alter providers create --app <app> --provider paypal \ --environment sandbox \ --client-id <sandbox-client-id> --client-secret - \ --scopes openid,email \ --redirect-uri https://your.app/callbackPayPal client IDs are opaque — there is no documented format difference between sandbox and live IDs. The save-time credential check verifies the credentials against the environment you selected, so a credential that belongs to the other deployment is rejected with an explanation at save time rather than failing later at the first user connection. A sandbox configuration can only reach api-m.sandbox.paypal.com; it cannot call the live API.
Going live
Section titled “Going live”Switch the existing configuration rather than deleting and rebuilding it. Change the environment and the credentials together — sandbox and live credentials are not interchangeable:
alter providers update --app <app> --provider paypal \ --environment production \ --client-id <live-client-id> --client-secret -In the Developer Portal, the Environment selector is on the provider’s configuration page, next to the client ID and secret.
Step 1: Create a PayPal OAuth App
Section titled “Step 1: Create a PayPal OAuth App”Go to the PayPal Developer Dashboard
Navigate to developer.paypal.com/dashboard/applications and sign in.
Create a new app
Click Create App, enter an app name, and select Merchant or Platform as the app type.
Configure the redirect URI
In Apps & Credentials select the app. Under Other features check Log in with PayPal, open Advanced Settings, and enter the Alter callback URL from the Developer Portal as the Return URL.
Choose the shared user information
Select the user information to share, matching the scopes chosen in Alter, and enter the Privacy policy URL and User agreement URL. Live apps using Log in with PayPal are reviewed by PayPal before they work (typically a few weeks); sandbox apps work as soon as they are saved.
Get credentials
Copy the Client ID and Client Secret.
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”Open the Developer Portal
Go to portal.alterauth.com and navigate to the application.
Add PayPal provider
Go to OAuth Providers > Add Provider > PayPal.
Enter credentials
- Client ID: Paste the PayPal Client ID
- Client Secret: Paste the PayPal Client Secret
- Environment: Set it to match where the PayPal app was created — sandbox credentials are only accepted when this field is Sandbox
Select scopes
Choose the scopes the application needs.
Save
Click Save. The provider is now active.
Available Scopes
Section titled “Available Scopes”| Scope | Description |
|---|---|
openid | Access to OpenID Connect identity |
email | Access to user email address |
profile | Access to user profile information |
address | Access to user address information |
https://uri.paypal.com/services/paypalattributes | Account verification status and PayPal account ID (payer ID) |
Additional scopes
Section titled “Additional scopes”| Scope | Description |
|---|---|
https://uri.paypal.com/services/expresscheckout | Process Express Checkout payments on behalf of the account |
https://uri.paypal.com/services/payments/futurepayments | Charge the customer for future payments (Future Payments) |
https://uri.paypal.com/services/wallet/sendmoney | Send money from the account’s PayPal wallet |
Orders policy controls
Section titled “Orders policy controls”The eight Orders operations below expose controls for documented targets, payment amounts, currencies, funding choices, notification settings and callback destinations. Creating or processing an order carries payment, write and send; tracking operations carry send because they can notify the buyer. Order and tracker patches also carry delete because their supported edits can remove data or cancel tracking.
For order creation, amount and currency keep their existing scalar behavior: different purchase-unit totals or currencies cannot be evaluated as one value and are refused. Collection selectors retain individual wire values. A selector ending in _value_max exposes the largest individual amount at its corresponding path, never a sum; for example, purchase_units_items_unit_amount_value_max limits the largest line-item unit price.
JSON Patch controls expose the requested op and path sets. They do not interpret the heterogeneous value as an effective payment amount or recipient. Use operation restrictions or approvals when those edits need review.
Creating, reading, authorizing, capturing or confirming an order, and adding tracking, can return narrowly scoped payment capabilities. Those six operations withhold payload capture as credential output. This does not turn them into reusable-credential minting routes. The two patch routes do not receive that mark.
- PayPal has separate sandbox and production environments. Use sandbox credentials for development.
- See the PayPal Log In with PayPal documentation for more details.
Policy-cataloged operations
Section titled “Policy-cataloged operations”Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.
| Operation ID | Families | Method | Provider path | Notes |
|---|---|---|---|---|
orders.create | payment, send, write | POST | /v2/checkout/orders | allowed; its secret is never stored in a payload capture; delivery address in policy parameter payment_source_paypal_experience_context_order_update_callback_config_callback_url or payment_source_venmo_experience_context_order_update_callback_config_callback_url |
orders.get | read | GET | /v2/checkout/orders/{id} | allowed; its secret is never stored in a payload capture |
orders.patch | delete, payment, write | PATCH | /v2/checkout/orders/{id} | — |
orders.authorize | payment, send, write | POST | /v2/checkout/orders/{id}/authorize | allowed; its secret is never stored in a payload capture; delivery address in policy parameter payment_source_paypal_experience_context_order_update_callback_config_callback_url or payment_source_venmo_experience_context_order_update_callback_config_callback_url |
orders.capture | payment, send, write | POST | /v2/checkout/orders/{id}/capture | allowed; its secret is never stored in a payload capture; delivery address in policy parameter payment_source_paypal_experience_context_order_update_callback_config_callback_url or payment_source_venmo_experience_context_order_update_callback_config_callback_url |
orders.confirm | payment, send, write | POST | /v2/checkout/orders/{id}/confirm-payment-source | allowed; its secret is never stored in a payload capture; delivery address in policy parameter payment_source_paypal_experience_context_order_update_callback_config_callback_url or payment_source_venmo_experience_context_order_update_callback_config_callback_url |
orders.track.create | send, write | POST | /v2/checkout/orders/{id}/track | allowed; its secret is never stored in a payload capture |
orders.trackers.patch | delete, send, write | PATCH | /v2/checkout/orders/{id}/trackers/{tracker_id} | — |
Unreviewed operations
Section titled “Unreviewed operations”These operations are in the provider’s published API specification, but Alter has not reviewed them yet, so their families are unknown. Every operation, family or content rule refuses one with operation_unreviewed unless a rule admits it by name, so a broad rule cannot be dodged by calling one. A rule names one by the provider-qualified name in the first column, never by the bare operation ID, which other providers may share. To use one under a rule, list that name in an operation allowlist to allow it, or in a require_approval rule whose every condition names it to hold it for approval; saving such a rule needs an organization admin. A family never admits one. Because an unreviewed operation may create credentials or change account security, admitting one also needs a scoped credential_minting allowance naming the provider and that name. See Unreviewed operations.
| Name in a rule | Method | Provider path |
|---|---|---|
paypal:authorizations.capture | POST | /v2/payments/authorizations/{authorization_id}/capture |
paypal:authorizations.get | GET | /v2/payments/authorizations/{authorization_id} |
paypal:authorizations.reauthorize | POST | /v2/payments/authorizations/{authorization_id}/reauthorize |
paypal:authorizations.void | POST | /v2/payments/authorizations/{authorization_id}/void |
paypal:balances.get | GET | /v1/reporting/balances |
paypal:captures.get | GET | /v2/payments/captures/{capture_id} |
paypal:captures.refund | POST | /v2/payments/captures/{capture_id}/refund |
paypal:connections.get | GET | /v2/invoicing/accounting-sync/merchant/connections |
paypal:customer.payment-tokens.get | GET | /v3/vault/payment-tokens |
paypal:disputes.accept-claim | POST | /v1/customer/disputes/{id}/accept-claim |
paypal:disputes.accept-offer | POST | /v1/customer/disputes/{id}/accept-offer |
paypal:disputes.acknowledge-return-item | POST | /v1/customer/disputes/{id}/acknowledge-return-item |
paypal:disputes.adjudicate | POST | /v1/customer/disputes/{id}/adjudicate |
paypal:disputes.appeal | POST | /v1/customer/disputes/{id}/appeal |
paypal:disputes.deny-offer | POST | /v1/customer/disputes/{id}/deny-offer |
paypal:disputes.escalate | POST | /v1/customer/disputes/{id}/escalate |
paypal:disputes.get | GET | /v1/customer/disputes/{id} |
paypal:disputes.list | GET | /v1/customer/disputes |
paypal:disputes.make-offer | POST | /v1/customer/disputes/{id}/make-offer |
paypal:disputes.patch | PATCH | /v1/customer/disputes/{id} |
paypal:disputes.provide-evidence | POST | /v1/customer/disputes/{id}/provide-evidence |
paypal:disputes.provide-supporting-info | POST | /v1/customer/disputes/{id}/provide-supporting-info |
paypal:disputes.require-evidence | POST | /v1/customer/disputes/{id}/require-evidence |
paypal:disputes.send-message | POST | /v1/customer/disputes/{id}/send-message |
paypal:event-types.list | GET | /v1/notifications/webhooks/{webhook_id}/event-types |
paypal:find.eligible.methods | POST | /v2/payments/find-eligible-methods |
paypal:invoice_connection_details.get | GET | /v2/invoicing/accounting-sync/invoices/{id}/connections |
paypal:invoices.cancel | POST | /v2/invoicing/invoices/{invoice_id}/cancel |
paypal:invoices.create | POST | /v2/invoicing/invoices |
paypal:invoices.delete | DELETE | /v2/invoicing/invoices/{invoice_id} |
paypal:invoices.generate-qr-code | POST | /v2/invoicing/invoices/{invoice_id}/generate-qr-code |
paypal:invoices.get | GET | /v2/invoicing/invoices/{invoice_id} |
paypal:invoices.list | GET | /v2/invoicing/invoices |
paypal:invoices.payments | POST | /v2/invoicing/invoices/{invoice_id}/payments |
paypal:invoices.payments-delete | DELETE | /v2/invoicing/invoices/{invoice_id}/payments/{transaction_id} |
paypal:invoices.refunds | POST | /v2/invoicing/invoices/{invoice_id}/refunds |
paypal:invoices.refunds-delete | DELETE | /v2/invoicing/invoices/{invoice_id}/refunds/{transaction_id} |
paypal:invoices.remind | POST | /v2/invoicing/invoices/{invoice_id}/remind |
paypal:invoices.search-invoices | POST | /v2/invoicing/search-invoices |
paypal:invoices.send | POST | /v2/invoicing/invoices/{invoice_id}/send |
paypal:invoices.update | PUT | /v2/invoicing/invoices/{invoice_id} |
paypal:invoicing.generate-next-invoice-number | POST | /v2/invoicing/generate-next-invoice-number |
paypal:partner-referrals.create | POST | /v2/customer/partner-referrals |
paypal:partner-referrals.read | GET | /v2/customer/partner-referrals/{partner_referral_id} |
paypal:payment-tokens.create | POST | /v3/vault/payment-tokens |
paypal:payment-tokens.delete | DELETE | /v3/vault/payment-tokens/{id} |
paypal:payment-tokens.get | GET | /v3/vault/payment-tokens/{id} |
paypal:payouts-item.cancel | POST | /v1/payments/payouts-item/{payout_item_id}/cancel |
paypal:payouts-item.get | GET | /v1/payments/payouts-item/{payout_item_id} |
paypal:payouts.get | GET | /v1/payments/payouts/{id} |
paypal:payouts.post | POST | /v1/payments/payouts |
paypal:plans.activate | POST | /v1/billing/plans/{id}/activate |
paypal:plans.create | POST | /v1/billing/plans |
paypal:plans.deactivate | POST | /v1/billing/plans/{id}/deactivate |
paypal:plans.get | GET | /v1/billing/plans/{id} |
paypal:plans.list | GET | /v1/billing/plans |
paypal:plans.patch | PATCH | /v1/billing/plans/{id} |
paypal:plans.update-pricing-schemes | POST | /v1/billing/plans/{id}/update-pricing-schemes |
paypal:products.create | POST | /v1/catalogs/products |
paypal:products.get | GET | /v1/catalogs/products/{product_id} |
paypal:products.list | GET | /v1/catalogs/products |
paypal:products.patch | PATCH | /v1/catalogs/products/{product_id} |
paypal:refunds.get | GET | /v2/payments/refunds/{refund_id} |
paypal:search.get | GET | /v1/reporting/transactions |
paypal:server.callback | POST | /v2/checkout/orders/order-update-callback |
paypal:setup-tokens.create | POST | /v3/vault/setup-tokens |
paypal:setup-tokens.get | GET | /v3/vault/setup-tokens/{id} |
paypal:simulate-event.post | POST | /v1/notifications/simulate-event |
paypal:subscriptions.activate | POST | /v1/billing/subscriptions/{id}/activate |
paypal:subscriptions.cancel | POST | /v1/billing/subscriptions/{id}/cancel |
paypal:subscriptions.capture | POST | /v1/billing/subscriptions/{id}/capture |
paypal:subscriptions.create | POST | /v1/billing/subscriptions |
paypal:subscriptions.get | GET | /v1/billing/subscriptions/{id} |
paypal:subscriptions.patch | PATCH | /v1/billing/subscriptions/{id} |
paypal:subscriptions.revise | POST | /v1/billing/subscriptions/{id}/revise |
paypal:subscriptions.suspend | POST | /v1/billing/subscriptions/{id}/suspend |
paypal:subscriptions.transactions | GET | /v1/billing/subscriptions/{id}/transactions |
paypal:templates.create | POST | /v2/invoicing/templates |
paypal:templates.delete | DELETE | /v2/invoicing/templates/{template_id} |
paypal:templates.get | GET | /v2/invoicing/templates/{template_id} |
paypal:templates.list | GET | /v2/invoicing/templates |
paypal:templates.update | PUT | /v2/invoicing/templates/{template_id} |
paypal:trackers-batch.get | GET | /v1/shipping/trackers |
paypal:trackers-batch.post | POST | /v1/shipping/trackers-batch |
paypal:trackers.get | GET | /v1/shipping/trackers/{id} |
paypal:trackers.post | POST | /v1/shipping/trackers |
paypal:trackers.put | PUT | /v1/shipping/trackers/{id} |
paypal:verify-webhook-signature.post | POST | /v1/notifications/verify-webhook-signature |
paypal:web-profile.create | POST | /v1/payment-experience/web-profiles |
paypal:web-profile.delete | DELETE | /v1/payment-experience/web-profiles/{id} |
paypal:web-profile.get | GET | /v1/payment-experience/web-profiles/{id} |
paypal:web-profile.get-list | GET | /v1/payment-experience/web-profiles |
paypal:web-profile.partial-update | PATCH | /v1/payment-experience/web-profiles/{id} |
paypal:web-profile.update | PUT | /v1/payment-experience/web-profiles/{id} |
paypal:webhooks-event-types.list | GET | /v1/notifications/webhooks-event-types |
paypal:webhooks-events.get | GET | /v1/notifications/webhooks-events/{event_id} |
paypal:webhooks-events.list | GET | /v1/notifications/webhooks-events |
paypal:webhooks-events.resend | POST | /v1/notifications/webhooks-events/{event_id}/resend |
paypal:webhooks-lookup.delete | DELETE | /v1/notifications/webhooks-lookup/{webhook_lookup_id} |
paypal:webhooks-lookup.get | GET | /v1/notifications/webhooks-lookup/{webhook_lookup_id} |
paypal:webhooks-lookup.list | GET | /v1/notifications/webhooks-lookup |
paypal:webhooks-lookup.post | POST | /v1/notifications/webhooks-lookup |
paypal:webhooks.delete | DELETE | /v1/notifications/webhooks/{webhook_id} |
paypal:webhooks.get | GET | /v1/notifications/webhooks/{webhook_id} |
paypal:webhooks.list | GET | /v1/notifications/webhooks |
paypal:webhooks.post | POST | /v1/notifications/webhooks |
paypal:webhooks.update | PATCH | /v1/notifications/webhooks/{webhook_id} |