PayPal Payments API v2 Migration: What Breaks and How to Fix It
PayPal Payments API v2 migration is mandatory in 2026 as v1 shuts down. Here's how to migrate without breaking checkout, capture, or webhook flows.
By Babul Jack
PayPal's Payments v1 API is deprecated, and in client projects I still see it running in production more often than you'd expect. This guide walks through the PayPal Payments API v2 migration: what actually breaks, the three gaps you must resolve before you touch a line of code, and the field-level changes that cause the most support tickets.
Why the PayPal Payments API v2 migration can't wait
PayPal officially marks the /v1/payments endpoint as deprecated across its entire developer reference, including List payments, Create payment, Show payment details, and Execute approved PayPal payment. The deprecated resources page tells integrators plainly: these pages exist "to support customers with existing integrations only," and new work should start on Orders v2 and Payments v2 instead (PayPal deprecated resources).
That matters because v1 is a single server-side API that creates, approves, and executes a payment in one lifecycle. V2 splits that lifecycle into two purpose-built APIs: Orders v2 (/v2/checkout/orders) for checkout, and Payments v2 (/v2/payments) for everything after approval — captures, voids, reauthorizations, and refunds. PayPal's own migration guide calls this a "structural refactor," not a drop-in replacement, and warns integrators not to assume an operation is equivalent just because it shares a name with its v1 counterpart (PayPal Payments API v1 → v2 migration guide).
In 2026, this is no longer a nice-to-have cleanup task. If you're still shipping new checkout features on v1, you're building on an API PayPal has publicly frozen, with no new payment methods, no Vault support, and no path forward for webhook-based reconciliation.
The three gaps you need to resolve before writing any code
Before touching your codebase, audit for three specific blockers PayPal calls out directly in its migration documentation:
List Payments has no v2 equivalent.GET /v1/payments/payment simply does not exist in Orders v2 or Payments v2. If your backend lists historical payments through this endpoint, you have to migrate those callers to the Transaction Search API (GET /v1/reporting/transactions) instead. PayPal flags this as the highest-effort gap in the whole migration.
The intent: order (AS2) flow is limited release. If you use the three-party delayed-authorization pattern, v2 requires PayPal Account Manager enablement before you can replicate it with processing_instruction. The standard migration path doesn't apply here — don't attempt it without confirming eligibility first.
Write operations return minimal responses by default. V2's capture, authorize, void, and refund calls return only id, status, and HATEOAS links unless you explicitly send the Prefer: return=representation header. Teams that skip this step spend hours debugging "missing" response fields that were never missing — they just weren't requested.
What actually breaks: the field-level changes
The most common migration failure isn't a missing endpoint — it's a renamed field or value that silently changes behavior. Here's the mapping that causes the most incidents in real migrations.
v1 field or value
v2 equivalent
Why it bites teams
intent: "sale"
intent: "CAPTURE"
Sending lowercase sale to v2 returns a validation error; the field name is unchanged so reviewers miss it
payer.payer_info.*
payment_source.[method].*
Entire payer object moves and is restructured per payment method
amount.total / amount.currency
amount.value / amount.currency_code
V2 validates that value equals the sum of breakdown components, or returns 422 Unprocessable Entity
is_final_capture
final_capture
Renamed and the default behavior is inverted — a frequent source of double-capture bugs
parent_payment
links[rel=up]
Navigation moves from a field to a HATEOAS link
notify_url (IPN)
Webhooks
IPN is gone entirely; you must register and verify webhook subscriptions
PayPal-Request-Id retention
Same header, 6-hour window
The idempotency key retention window shrinks from 30 days in v1 practice to 6 hours in v2
That last row deserves its own section, because it changes how you design retry logic.
Idempotency keys now expire in 6 hours, not 30 days
PayPal's migration guide is explicit on go-live step 7: "Verify idempotency key generation creates fresh keys. Do not reuse keys beyond 6 hours" (PayPal Payments API v1 → v2 migration guide). If your retry queue or job scheduler holds a stale PayPal-Request-Id for longer than that — say, a delayed batch job that retries overnight — the retry will be treated as a brand-new request instead of a safe replay, and you risk a duplicate capture.
This is a broader lesson that applies well beyond PayPal: idempotent webhook and retry handling needs the same discipline whether you're reconciling Stripe captures or PayPal orders, as I cover in Stripe Webhook Signature Verification Failed? Here's the Fix.
How to run the migration: step by step
Step 1: Inventory every v1 call site
Search your codebase for these strings before writing a single line of migration code:
Each hit is a call site you need to re-map using PayPal's endpoint table. Nineteen distinct v1 operations need to be re-pointed across Orders v2 and Payments v2.
v1's single POST .../execute call becomes two dedicated v2 endpoints, and payer_id is no longer accepted on either call:
sale intent → POST /v2/checkout/orders/{id}/capture
authorize intent → POST /v2/checkout/orders/{id}/authorize
Step 4: Migrate IPN to webhooks
Remove every notify_url field and register webhook subscriptions instead. This is also the point where you should build real reconciliation logic rather than trusting a single notification. A reliable pattern treats each webhook as an event, not a source of truth: verify the signature, store the event with a unique ID under a database constraint, and only then run the business logic that moves an order from pending to paid (payment webhook reconciliation patterns). The same idempotent-processing approach is explained well in webhook idempotency patterns for duplicate payment events, which is useful even if you're not on that specific gateway.
Step 5: Replace List Payments with Transaction Search
Since GET /v1/payments/payment has no v2 replacement, route any reporting or reconciliation job that lists historical payments to GET /v1/reporting/transactions instead. Budget real time for this — it's a different query shape, not a renamed endpoint.
What is a PayPal payments API v2 migration checklist?
Use this as your go-live gate, drawn directly from PayPal's own checklist:
Inventory all callers of /v1/payments/payment and route them to Orders v2 or Transaction Search
Replace intent: "sale" with intent: "CAPTURE" and intent: "authorize" with intent: "AUTHORIZE"
Move redirect_urls and application_context into payment_source.[method].experience_context
Replace POST .../execute with .../capture or .../authorize based on intent
Remove payer_id from every execute, capture, and authorize request body
Add Prefer: return=representation to every write call that reads the response
Set final_capture: true explicitly on every authorization capture call
Generate fresh idempotency keys; never reuse one beyond 6 hours
Remove all notify_url fields and confirm webhooks are live and verified
Confirm all payer.payer_info.* readers are updated to payment_source.[method].*
Log debug_id from every non-2xx response for PayPal support escalation
Why compliance teams should care too
A payments migration isn't just a backend refactor — it touches your cardholder data environment's scope and audit trail. PCI DSS 4.0.1 is the only version assessors test against in 2026, and its future-dated requirements (mandatory multi-factor authentication across the full CDE, payment-page script monitoring, 12-character minimum passwords) have been enforceable since March 31, 2025 (PCI DSS 4.0.1 compliance overview). If your v2 migration touches how payment pages load scripts or how service accounts authenticate to your payment backend, fold that review into the same change window instead of treating it as a separate project later. The same discipline applies to the regulatory shifts covered in PSD3 Open Banking API Changes: What to Build Before 2027.
If reconciliation, webhook verification, or idempotent retry design feels unfamiliar, this is exactly the kind of work I handle through payment integration services — auditing an existing gateway integration, migrating it safely, and building the reconciliation layer so a duplicate webhook never becomes a duplicate charge.
Frequently asked questions
Is PayPal shutting down the Payments v1 API completely?
PayPal has not published a hard shutdown date, but every v1 endpoint in its developer reference now carries a deprecation notice stating the resource exists only to support existing integrations. New integrations cannot be built on v1, and PayPal directs all new work to Orders v2 and Payments v2.
What is the biggest risk in a PayPal v1 to v2 migration?
The highest-effort gap is GET /v1/payments/payment (List Payments), which has no v2 equivalent at all. Any reporting, reconciliation, or admin tool that lists historical payments through that endpoint must be rewritten against the Transaction Search API before you can safely retire v1.
Do I need new PayPal credentials to migrate to v2?
No, for most integrations. OAuth 2.0 client credentials and the POST /v1/oauth2/token endpoint carry forward unchanged. Only partner-facilitated captures and refunds need a new PayPal-Auth-Assertion header, and only integrations using payment_instruction.platform_fees need PayPal Complete Payments Platform enrollment.
Why does my v2 capture response look empty compared to v1?
V2 write operations (capture, authorize, void, refund) return only id, status, and navigation links by default. Add the Prefer: return=representation header to every write call whose response body you actually read, or you'll be debugging fields that were never missing.
How long are PayPal idempotency keys valid in v2?
Six hours. This is a significant reduction from the longer retention window teams got used to under v1, so any retry logic, delayed job queue, or offline batch processor must generate a fresh PayPal-Request-Id rather than reusing one from an earlier attempt.
Key takeaways
PayPal's Payments v1 API is deprecated across its entire developer reference; all new integrations must target Orders v2 and Payments v2.
Resolve the three structural gaps first: no v2 replacement for List Payments, limited-release status for the intent: order (AS2) flow, and minimal default responses on write operations.
The highest-friction changes are field renames with behavioral side effects: is_final_capture → final_capture inverts its default, and amount.total/amount.currency become value/currency_code with strict breakdown validation.
IPN is gone; webhook-based reconciliation with idempotent event processing is now mandatory, not optional.
Idempotency keys expire after 6 hours in v2, far shorter than teams expect coming from v1 — design retry logic around that window.
Treat this migration as a chance to review PCI DSS 4.0.1 exposure on payment pages and service-account authentication in the same change cycle.