Skip to content

Integrations

PayPal

Set up PayPal OAuth for payment processing and account access

Connect the application’s users to PayPal for payment processing, account information, and financial transaction data.

PropertyValue
Provider IDpaypal
CategoryPayments
PKCESupported
Token refreshAutomatic
EnvironmentsProduction and Sandbox
Redirect URIShown in Developer Portal

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:
Terminal window
alter providers create --app <app> --provider paypal \
--environment sandbox \
--client-id <sandbox-client-id> --client-secret - \
--scopes openid,email \
--redirect-uri https://your.app/callback

PayPal 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.

Switch the existing configuration rather than deleting and rebuilding it. Change the environment and the credentials together — sandbox and live credentials are not interchangeable:

Terminal window
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.

Go to the PayPal Developer Dashboard

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.

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.

ScopeDescription
openidAccess to OpenID Connect identity
emailAccess to user email address
profileAccess to user profile information
addressAccess to user address information
https://uri.paypal.com/services/paypalattributesAccount verification status and PayPal account ID (payer ID)
ScopeDescription
https://uri.paypal.com/services/expresscheckoutProcess Express Checkout payments on behalf of the account
https://uri.paypal.com/services/payments/futurepaymentsCharge the customer for future payments (Future Payments)
https://uri.paypal.com/services/wallet/sendmoneySend money from the account’s PayPal wallet

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.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider pathNotes
orders.createpayment, send, writePOST/v2/checkout/ordersallowed; 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.getreadGET/v2/checkout/orders/{id}allowed; its secret is never stored in a payload capture
orders.patchdelete, payment, writePATCH/v2/checkout/orders/{id}—
orders.authorizepayment, send, writePOST/v2/checkout/orders/{id}/authorizeallowed; 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.capturepayment, send, writePOST/v2/checkout/orders/{id}/captureallowed; 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.confirmpayment, send, writePOST/v2/checkout/orders/{id}/confirm-payment-sourceallowed; 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.createsend, writePOST/v2/checkout/orders/{id}/trackallowed; its secret is never stored in a payload capture
orders.trackers.patchdelete, send, writePATCH/v2/checkout/orders/{id}/trackers/{tracker_id}—

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 ruleMethodProvider path
paypal:authorizations.capturePOST/v2/payments/authorizations/{authorization_id}/capture
paypal:authorizations.getGET/v2/payments/authorizations/{authorization_id}
paypal:authorizations.reauthorizePOST/v2/payments/authorizations/{authorization_id}/reauthorize
paypal:authorizations.voidPOST/v2/payments/authorizations/{authorization_id}/void
paypal:balances.getGET/v1/reporting/balances
paypal:captures.getGET/v2/payments/captures/{capture_id}
paypal:captures.refundPOST/v2/payments/captures/{capture_id}/refund
paypal:connections.getGET/v2/invoicing/accounting-sync/merchant/connections
paypal:customer.payment-tokens.getGET/v3/vault/payment-tokens
paypal:disputes.accept-claimPOST/v1/customer/disputes/{id}/accept-claim
paypal:disputes.accept-offerPOST/v1/customer/disputes/{id}/accept-offer
paypal:disputes.acknowledge-return-itemPOST/v1/customer/disputes/{id}/acknowledge-return-item
paypal:disputes.adjudicatePOST/v1/customer/disputes/{id}/adjudicate
paypal:disputes.appealPOST/v1/customer/disputes/{id}/appeal
paypal:disputes.deny-offerPOST/v1/customer/disputes/{id}/deny-offer
paypal:disputes.escalatePOST/v1/customer/disputes/{id}/escalate
paypal:disputes.getGET/v1/customer/disputes/{id}
paypal:disputes.listGET/v1/customer/disputes
paypal:disputes.make-offerPOST/v1/customer/disputes/{id}/make-offer
paypal:disputes.patchPATCH/v1/customer/disputes/{id}
paypal:disputes.provide-evidencePOST/v1/customer/disputes/{id}/provide-evidence
paypal:disputes.provide-supporting-infoPOST/v1/customer/disputes/{id}/provide-supporting-info
paypal:disputes.require-evidencePOST/v1/customer/disputes/{id}/require-evidence
paypal:disputes.send-messagePOST/v1/customer/disputes/{id}/send-message
paypal:event-types.listGET/v1/notifications/webhooks/{webhook_id}/event-types
paypal:find.eligible.methodsPOST/v2/payments/find-eligible-methods
paypal:invoice_connection_details.getGET/v2/invoicing/accounting-sync/invoices/{id}/connections
paypal:invoices.cancelPOST/v2/invoicing/invoices/{invoice_id}/cancel
paypal:invoices.createPOST/v2/invoicing/invoices
paypal:invoices.deleteDELETE/v2/invoicing/invoices/{invoice_id}
paypal:invoices.generate-qr-codePOST/v2/invoicing/invoices/{invoice_id}/generate-qr-code
paypal:invoices.getGET/v2/invoicing/invoices/{invoice_id}
paypal:invoices.listGET/v2/invoicing/invoices
paypal:invoices.paymentsPOST/v2/invoicing/invoices/{invoice_id}/payments
paypal:invoices.payments-deleteDELETE/v2/invoicing/invoices/{invoice_id}/payments/{transaction_id}
paypal:invoices.refundsPOST/v2/invoicing/invoices/{invoice_id}/refunds
paypal:invoices.refunds-deleteDELETE/v2/invoicing/invoices/{invoice_id}/refunds/{transaction_id}
paypal:invoices.remindPOST/v2/invoicing/invoices/{invoice_id}/remind
paypal:invoices.search-invoicesPOST/v2/invoicing/search-invoices
paypal:invoices.sendPOST/v2/invoicing/invoices/{invoice_id}/send
paypal:invoices.updatePUT/v2/invoicing/invoices/{invoice_id}
paypal:invoicing.generate-next-invoice-numberPOST/v2/invoicing/generate-next-invoice-number
paypal:partner-referrals.createPOST/v2/customer/partner-referrals
paypal:partner-referrals.readGET/v2/customer/partner-referrals/{partner_referral_id}
paypal:payment-tokens.createPOST/v3/vault/payment-tokens
paypal:payment-tokens.deleteDELETE/v3/vault/payment-tokens/{id}
paypal:payment-tokens.getGET/v3/vault/payment-tokens/{id}
paypal:payouts-item.cancelPOST/v1/payments/payouts-item/{payout_item_id}/cancel
paypal:payouts-item.getGET/v1/payments/payouts-item/{payout_item_id}
paypal:payouts.getGET/v1/payments/payouts/{id}
paypal:payouts.postPOST/v1/payments/payouts
paypal:plans.activatePOST/v1/billing/plans/{id}/activate
paypal:plans.createPOST/v1/billing/plans
paypal:plans.deactivatePOST/v1/billing/plans/{id}/deactivate
paypal:plans.getGET/v1/billing/plans/{id}
paypal:plans.listGET/v1/billing/plans
paypal:plans.patchPATCH/v1/billing/plans/{id}
paypal:plans.update-pricing-schemesPOST/v1/billing/plans/{id}/update-pricing-schemes
paypal:products.createPOST/v1/catalogs/products
paypal:products.getGET/v1/catalogs/products/{product_id}
paypal:products.listGET/v1/catalogs/products
paypal:products.patchPATCH/v1/catalogs/products/{product_id}
paypal:refunds.getGET/v2/payments/refunds/{refund_id}
paypal:search.getGET/v1/reporting/transactions
paypal:server.callbackPOST/v2/checkout/orders/order-update-callback
paypal:setup-tokens.createPOST/v3/vault/setup-tokens
paypal:setup-tokens.getGET/v3/vault/setup-tokens/{id}
paypal:simulate-event.postPOST/v1/notifications/simulate-event
paypal:subscriptions.activatePOST/v1/billing/subscriptions/{id}/activate
paypal:subscriptions.cancelPOST/v1/billing/subscriptions/{id}/cancel
paypal:subscriptions.capturePOST/v1/billing/subscriptions/{id}/capture
paypal:subscriptions.createPOST/v1/billing/subscriptions
paypal:subscriptions.getGET/v1/billing/subscriptions/{id}
paypal:subscriptions.patchPATCH/v1/billing/subscriptions/{id}
paypal:subscriptions.revisePOST/v1/billing/subscriptions/{id}/revise
paypal:subscriptions.suspendPOST/v1/billing/subscriptions/{id}/suspend
paypal:subscriptions.transactionsGET/v1/billing/subscriptions/{id}/transactions
paypal:templates.createPOST/v2/invoicing/templates
paypal:templates.deleteDELETE/v2/invoicing/templates/{template_id}
paypal:templates.getGET/v2/invoicing/templates/{template_id}
paypal:templates.listGET/v2/invoicing/templates
paypal:templates.updatePUT/v2/invoicing/templates/{template_id}
paypal:trackers-batch.getGET/v1/shipping/trackers
paypal:trackers-batch.postPOST/v1/shipping/trackers-batch
paypal:trackers.getGET/v1/shipping/trackers/{id}
paypal:trackers.postPOST/v1/shipping/trackers
paypal:trackers.putPUT/v1/shipping/trackers/{id}
paypal:verify-webhook-signature.postPOST/v1/notifications/verify-webhook-signature
paypal:web-profile.createPOST/v1/payment-experience/web-profiles
paypal:web-profile.deleteDELETE/v1/payment-experience/web-profiles/{id}
paypal:web-profile.getGET/v1/payment-experience/web-profiles/{id}
paypal:web-profile.get-listGET/v1/payment-experience/web-profiles
paypal:web-profile.partial-updatePATCH/v1/payment-experience/web-profiles/{id}
paypal:web-profile.updatePUT/v1/payment-experience/web-profiles/{id}
paypal:webhooks-event-types.listGET/v1/notifications/webhooks-event-types
paypal:webhooks-events.getGET/v1/notifications/webhooks-events/{event_id}
paypal:webhooks-events.listGET/v1/notifications/webhooks-events
paypal:webhooks-events.resendPOST/v1/notifications/webhooks-events/{event_id}/resend
paypal:webhooks-lookup.deleteDELETE/v1/notifications/webhooks-lookup/{webhook_lookup_id}
paypal:webhooks-lookup.getGET/v1/notifications/webhooks-lookup/{webhook_lookup_id}
paypal:webhooks-lookup.listGET/v1/notifications/webhooks-lookup
paypal:webhooks-lookup.postPOST/v1/notifications/webhooks-lookup
paypal:webhooks.deleteDELETE/v1/notifications/webhooks/{webhook_id}
paypal:webhooks.getGET/v1/notifications/webhooks/{webhook_id}
paypal:webhooks.listGET/v1/notifications/webhooks
paypal:webhooks.postPOST/v1/notifications/webhooks
paypal:webhooks.updatePATCH/v1/notifications/webhooks/{webhook_id}

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.