How to Import Payment History Into WooCommerce

How to Import Payment History Into WooCommerce

When you move your WooCommerce store to a new payment processor, your old transactions stay behind in the previous provider’s account. You can import payment history so your past sales, refunds and customers sit next to your new payments, which makes reporting, customer service and dispute handling much easier.

The process has three parts: export the history from your old provider (through an API connection or a CSV file), clean and map the data, and import it into a tool that can store and display it alongside your current payments. Keep the original exports as well, because your old provider remains the official record for anything processed there.

Why bother importing old payment history

Switching processors is often driven by fees, support or account requirements, and the history feels like an afterthought. It becomes important quickly, though, for a few reasons:

  • Customer service: when a customer asks about a charge from last year, you want to find it in one place instead of logging into an old account you may no longer have access to.
  • Chargebacks: disputes can arrive weeks or months after a sale. If the original payment was on your old processor, you need its details to respond, and the dispute itself is still handled through that processor.
  • Reporting: year-over-year revenue, refund trends and customer lifetime value only make sense if the earlier data is included.
  • Taxes and bookkeeping: your accountant needs a complete picture of the year, even if it spans two processors.
  • Account closure: some providers limit access once you close an account. Exporting before you leave protects you.

What you can realistically bring over

An import moves records, not live payment relationships. That distinction matters.

ItemCan you import it?Notes
Past transactions (date, amount, status)YesUsually available by export or API
Refunds and their amountsYes, in most exportsCheck whether refunds are separate rows or a column
Customer names and emailsYesUseful for matching to WooCommerce customers
Fees and payoutsOftenDepends on the provider’s export format
Saved card numbersNo, not by a simple importFull card data cannot be exported to you; moving stored cards requires a secure data migration between providers
Active subscriptionsRecords onlyBilling has to be set up again with the new gateway

If you have recurring customers, plan the card migration separately. Many processors support a secure transfer of stored card data to another PCI-compliant provider, but the process, timing and any fees depend on both providers. Ask your old and new providers early, because it can take time.

Step 1: Export from your old provider

There are two common ways to get data out.

API connection

Some providers let you connect with an API key so another tool can read your transaction history directly. This avoids manual file handling and tends to bring over more fields. Use a restricted or read-only key if your provider offers one, and delete it once the import is done.

CSV export

Almost every provider offers a transaction report you can download as a CSV file. Before you export:

  1. Pick the widest date range you need. Some providers cap how many rows or months one export can include, so you may need several files.
  2. Include all statuses: approved, declined, refunded and voided, if the report allows it.
  3. Export customer details if they are in a separate report.
  4. Export payout or settlement reports if you want fee and deposit history.
  5. Save the original files somewhere safe and unedited.

Step 2: Clean and check the data

CSV exports are rarely perfect. A quick review before importing saves you from a messy dashboard later.

  • Dates: confirm the format and time zone. A sale near midnight can land on a different day if time zones do not match.
  • Amounts: check that refunds are negative or clearly labeled, and that currency is consistent.
  • Duplicates: overlapping exports often repeat rows. Remove them, or use a tool that skips records it has already imported.
  • Test transactions: remove sandbox or test charges if they were included.
  • Sensitive data: exports should only show masked card numbers, such as the last four digits. If you ever see full card numbers, stop and contact your provider.

Do your cleanup on a copy, not the original file. If something goes wrong, you can start over from the source.

Step 3: Import into one place

WooCommerce itself does not include a tool for importing transaction history from other processors. Order import plugins exist, but creating fake WooCommerce orders for old payments can distort your sales reports, trigger emails or affect stock. For most stores, it is cleaner to keep imported payments as payment records rather than new orders.

If your new gateway is NMI, PaymentDash handles this inside WordPress. It is a WooCommerce plugin that works as both an NMI payment gateway and a payments dashboard, and it can import history from Stripe and Square by key, and from PayPal, Authorize.net, Braintree, Clover, Shopify Payments, QuickBooks Payments and more by CSV.

PaymentDash import settings with options to import payment history by API key or CSV
Import past payments from Stripe or Square with an API key, or from other providers with a CSV export.

With your history in the same dashboard as your new NMI payments, you can look up customers, review refunds and pull sales reports without switching between accounts. Monthly statements and tax reports can be exported as PDF or CSV for your accountant.

Step 4: Match customers and check the totals

After importing, confirm the data adds up before you rely on it.

  1. Compare totals: pick a few months and compare the imported gross sales and refunds to the totals in your old provider’s reports.
  2. Spot-check records: look up five or ten specific transactions and confirm dates, amounts and statuses.
  3. Review customer matching: customers who used different emails with the old provider and WooCommerce may appear as separate people. Decide whether that matters for your reporting.
  4. Note the cutover date: record the exact date and time you stopped using the old processor, so nobody double-counts transactions from that day.

Keeping your old account and records

Even after a clean import, do not rush to close your old processor account. Refunds for payments made there generally have to be issued through that processor, and chargebacks on those payments will still be sent there. Check your merchant agreement for any reserve, minimum term or closing requirements, and ask how long you will retain access to reports after closing.

Keep the original export files with your business records. Retention requirements for financial records vary, so ask your accountant how long to keep them.

Bringing your payment history together

Importing payment history turns a processor switch from a hard break into a continuous record. Export everything before you leave, clean the files, import them into a place that keeps them separate from live orders, and check the totals. Then keep the old account open long enough to handle late refunds and disputes.

If your store is moving to NMI and you want old and new payments in one WordPress dashboard, see what is included on the PaymentDash features page or compare plans on the pricing page.

Frequently asked questions

Can I import saved cards from my old processor?

Not through a normal history import. Stored card data can only move through a secure migration between PCI-compliant providers. Ask both providers whether they support it and how long it takes.

Will imported payments show up as WooCommerce orders?

That depends on the tool. Importing old payments as payment records, rather than new orders, avoids skewing sales reports, sending customer emails or changing stock levels.

Can I refund an imported payment from my new gateway?

Generally no. A refund has to go back through the processor that took the original payment, so keep access to your old account for as long as refunds or disputes might come up.

Read more

All guides