Skip to content
Digital Inspiration DocsDigital Inspiration Docs

PayPal has no list of customers you can export. Instead, Mail Merge reads your PayPal transactions for the dates you pick and copies each buyer’s name, email and address into a Google Sheet. You can then send each buyer a personal email from Gmail.

The add-on connects with the keys of a PayPal app that can only search your transactions.

  1. Open the PayPal Developer Dashboard and click Create App. Name the app, like Mail Merge, and click Create App.

  2. Under the app’s features, untick everything except Transaction search, then click Save Changes.

    PayPal Developer Dashboard app features with only Transaction search checked
    Turn on Transaction search only.
  3. Scroll up to the app’s credentials and click Show to see the Client ID and Secret. Copy both.

    PayPal Developer Dashboard API credentials page with the app’s Client ID and Secret key
    Copy the Client ID and Secret from the app's page.
  1. In your Google Sheet, go to Extensions > Mail Merge with Attachments > Import Contacts.

    Google Sheets Extensions menu with the Mail Merge with Attachments submenu open and Import Contacts highlighted
    Open Import Contacts from the Extensions menu in Google Sheets.
  2. Under Import data from, choose Paypal. Paste the Paypal Client ID and Paypal Secret from your app.

  3. Pick a Start Date and End Date for the transactions you want, then click Get Fields.

  4. Under Contact Fields, pick the buyer details you want as columns, like payer.email_address and payer.payer_name.

  5. Under Import Location, choose Append to current sheet or Create a new sheet, then click Import data.

    Mail Merge import window with a PayPal client ID, secret, date range and payer fields
    Paste the credentials, pick a date range and fields, then click Import data.

Row 1 gets the PayPal field names, like payer.payer_name, and those become your merge fields. Rename them to short titles like Name and Email Address before you write your email, so the merge fields are easy to type. When you set up the merge, choose the email column in the Send to field under Recipients.

  • The rows come from transactions, so a buyer who paid you more than once can appear on more than one row. Check for repeats before you send.
  • When you’re done importing, disable the app’s secret in the PayPal Developer Dashboard. The buyers you already imported stay in your sheet.
  • Curious how it works? This tutorial shows how the PayPal API is used with Google Apps Script to import transactions.