Skip to main content
PayPal → AppsFlyerIntegration guide

Connecting PayPal to AppsFlyer

PayPal holds the settled transaction, and it is frequently the payment method that reports worst. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the PayPal transaction before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PayPal in-app purchases to AppsFlyer, sent from the webhook

For in-app PayPal purchases, store the appsflyer_id and customer user ID on the order and put your order reference in PayPal's custom_id. Send af_purchase from your server on PAYMENT.CAPTURE.COMPLETED to cover failed app returns, then stop the SDK sending the same purchase. Send refunds as a separate negative-value event.

AppsFlyer only makes sense for PayPal revenue that happens in your app, for example a shopping or delivery app using PayPal's mobile checkout. The record to send is the completed capture, but AppsFlyer needs the appsflyer_id of the device that started the order, and PayPal knows nothing about that. Store the appsflyer_id (and your customer user ID) on your order when the app creates it, and put your order reference in the PayPal order's custom_id so the webhook can find its way back.

The specific break is the app switch. PayPal checkout on mobile can hand the buyer off to the PayPal app or a browser sheet, and if the return to your app fails, the SDK in-app event never fires even though PayPal captured the money. Sending af_purchase from your server off PAYMENT.CAPTURE.COMPLETED covers those buyers, but then the SDK must stop sending the same purchase, or AppsFlyer and every network it forwards to will count it twice.

Revenue needs a currency and should match what your billing reports, which for PayPal is the gross capture before PayPal's fee unless you decide otherwise. Refunds do not reverse automatically; if you want net revenue in cohorts, send a separate refund event off PAYMENT.CAPTURE.REFUNDED with a negative value, and confirm in your account how AppsFlyer treats negative revenue before relying on it.

PayPal → AppsFlyer · what breaks

Why this join usually fails — PayPal → AppsFlyer

  1. 01

    The AppsFlyer device identifier, appsflyer_id never reaches PayPal

    The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist.

  2. 02

    The buyer never comes back from PayPal

    Money moves, the confirmation page never loads, and the conversion is invisible. It is the single biggest reason PayPal-heavy stores see paid channels look worse than they are.

  3. 03

    Web conversions sent to a mobile attribution platform

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  4. 04

    Nothing reconciles afterwards

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

PayPal → AppsFlyer · the fix

What working looks like — PayPal → AppsFlyer

  • The AppsFlyer device identifier, appsflyer_id on every transaction

  • Conversions arriving in AppsFlyer

    The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.

  • Reconciled against the source

PayPal → AppsFlyer · architecture

How PayPal and AppsFlyer actually connect

  1. 1

    PayPal holds the truth

    The transaction record carries the amount, currency and a transaction ID. It is also the record that survives when the buyer is redirected out to PayPal and never returns to your confirmation page.

  2. 2

    AppsFlyer needs a click to match

    AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.

  3. 3

    The identifier is the bridge

    The AppsFlyer device identifier, appsflyer_id, captured at the visit and carried into the PayPal transaction.

  4. 4

    The event source decides reliability

    Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.

  5. 5

    Deduplication at the destination

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

PayPal → AppsFlyer · normal or broken

Working vs. broken, side by side — PayPal → AppsFlyer

Normal, not a fault

  • The AppsFlyer device identifier, appsflyer_id present on the transaction

  • Sent from the PayPal webhook (or your order record when the IPN lands)

  • Deduplicated correctly

    AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.

  • Reconciles with the source

Actually broken

  • The AppsFlyer device identifier, appsflyer_id missing on most records

    The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist.

  • Sent from the browser

    Money moves, the confirmation page never loads, and the conversion is invisible. It is the single biggest reason PayPal-heavy stores see paid channels look worse than they are.

  • Counted twice, or not at all

    This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.

  • Nobody has reconciled it

PayPal → AppsFlyer · diagnose

Diagnostic order — PayPal → AppsFlyer

  1. 01

    Count transactions carrying the AppsFlyer device identifier, appsflyer_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare completed PayPal transactions against confirmation-page loads

    For the same day. The gap between the two is the share of PayPal revenue your browser-side setup is structurally unable to see.

  4. 04

    Check what share of your revenue happens in the app at all

    If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.

  5. 05

    Read the match rate, not the success message

    AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.

PayPal → AppsFlyer · prove

How it gets proven — PayPal → AppsFlyer

Source of truth

PayPal's Activity report, filtered to completed payments for the same window.

  • The AppsFlyer device identifier, appsflyer_id confirmed present on a live transaction.
  • In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
  • A PayPal order where the buyer never returned to the site, confirmed to have reported anyway.

PayPal → AppsFlyer · free audit

What we check in the free audit

  • Count transactions carrying the AppsFlyer device identifier, appsflyer_id
  • Follow one real conversion end to end
  • Compare completed PayPal transactions against confirmation-page loads
  • Check what share of your revenue happens in the app at all
  • Read the match rate, not the success message

Checked against

PayPal's Activity report, filtered to completed payments for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

PayPal → AppsFlyer · when not to buy

When you don't need this — PayPal → AppsFlyer

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the AppsFlyer device identifier, appsflyer_id.
  • If PayPal is under a few percent of your orders, fixing the whole flow may not move a decision. Measure the share first.
  • If you have no mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.

PayPal → AppsFlyer · what we deliver

What gets built — PayPal → AppsFlyer

  • Identifier capture into PayPal

    Capture the click identifier before checkout and store it against the order in your own database, keyed by the PayPal order ID. PayPal's own custom_id / invoice_id fields can carry your order reference so the two records can always be re-joined server-side.

  • Event source: the PayPal webhook (or your order record when the IPN lands)

    Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.

  • Dispatch to AppsFlyer

    The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.

  • Reversals where they exist

    PAYMENT.CAPTURE.REFUNDED and the dispute webhooks exist and carry the same reference, so reversals can be wired properly.

Written guarantee

95%+ tracking accuracy

Measured against PayPal's Activity report, filtered to completed payments for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

PayPal → AppsFlyer questions, answered

Usually because the buyer never returned to the app after the PayPal hand-off, so the SDK never logged the purchase. Send it server-to-server from the PayPal webhook with the stored appsflyer_id.

Free · 30 min

Get PayPal and AppsFlyer joined properly

Free30 minutesNo obligation