PayPal
Commerce User OAuth

PayPal

Process payments and manage transactions with PayPal via OAuth authentication.

Auth Model

User OAuth

Standard OAuth 2.0 authorization. A user grants consent and receives an access token. Authpipe handles refresh, rotation, and health monitoring automatically.

Connection Flow

1
Your App
2
Authpipe
3
PayPal
@authpipe/node
// Get a valid credential — always fresh, zero latency
const { credential } = await authpipe.getCredential({
  provider: 'paypal',
  tenantId: 'org_acme',
  userId: 'user_123',
});
// Use the credential with the provider API
const response = await fetch('https://api.example.com/data', {
  headers: { Authorization: `Bearer ${credential}` },
});
@authpipe/react
// Drop-in React component
<ConnectButton
  provider="paypal"
  onSuccess={(conn) => console.log('Connected!', conn)}
/>

Available Scopes

Permissions you can request when connecting to PayPal.

openid

OpenID Connect authentication

email

Read access to user email address

profile

Read access to user profile information

address

Read access to user address

https://uri.paypal.com/services/payments/payment

Create and manage payments

https://uri.paypal.com/services/payments/refund

Issue refunds on payments

What Authpipe handles for PayPal

OAuth Orchestration

PKCE, state validation, callback handling, and provider-specific quirks — all automatic.

Encrypted Vault

AES-256-GCM encryption with per-tenant key isolation. OAuth tokens, API keys, and webhook secrets — never exposed to the frontend.

Silent Refresh

Proactive token refresh before expiry. SDK returns from local cache with zero latency.

Health Monitoring

Scheduled checks detect revoked tokens and expired credentials before users notice.

More Commerce providers

Ready to connect PayPal?

Get your first 100 connections free. Set up in minutes with our SDK.