# WooCommerce plugin

URL: https://doc.securepayapi.com/woocommerce
Last updated: 2026-11-22

> Take card payments, Apple Pay and Google Pay on a WooCommerce checkout with the securepayAPI plugin — download, install, connect your keys.

The plugin adds securepayAPI as a card payment method on a WooCommerce store.
Customers pay on your own checkout and never leave the site; you write no code.

**[Download the plugin](https://doc.securepayapi.com/downloads/securepayapi-payments-latest.zip)** —
`securepayapi-payments-latest.zip`, always the current version.

## What it does

- Puts the card form on your checkout as an iframe served by securepayAPI. Card
  numbers are entered on securepayAPI and never pass through your store.
- Offers Apple Pay or Google Pay above the card form where the device supports
  it.
- Works on both checkouts WooCommerce ships — the Checkout block and the
  classic shortcode checkout — and on the "pay for order" page.
- Creates the order before anything is charged, and marks it paid only after
  your store has asked securepayAPI what happened and the answer matches the
  order: amount, currency, live or test.
- Is told by securepayAPI, server to server, when a payment goes through, so an
  order is completed even if the customer closes the tab.

## What you need

- A securepayAPI account with a registered website that matches your store's
  domain.
- Your **client key** and **secret key** — see [API keys](https://doc.securepayapi.com/api-keys).
- **HTTPS** on your store. The method hides itself on an `http://` store.
- A store that sells in **USD**. The method hides itself for other currencies.
- For Apple Pay: your store's domain registered for Apple Pay on your account —
  ask us to add it. Google Pay needs nothing beyond the registered website.
- WordPress 6.0 or newer and PHP 7.4 or newer.

## Install

1. Download `securepayapi-payments-latest.zip` from the link above.
2. In WordPress open **Plugins → Add New → Upload Plugin**, choose the file and
   install it. (Or unzip it into `wp-content/plugins`.)
3. Activate the plugin.
4. Open **WooCommerce → Settings → Payments → Credit card (securepayAPI)**.
5. Choose **Sandbox** or **Live**, paste the matching client and secret keys,
   and press **Test keys** before saving.

Start in the [sandbox](https://doc.securepayapi.com/sandbox): its keys take test cards and never move money.

## Update

Download the file again and upload it the same way; WordPress offers to replace
the installed version. Your settings are kept.

## Good to know

- **Refunds** are made in the securepayAPI dashboard, not from the WooCommerce
  order screen.
- **The payment method is missing from checkout** when it cannot work: the store
  is not on HTTPS, the currency is not USD, or the keys are missing. The gateway
  settings screen names the reason.
- **An order is on hold and says the payment could not be matched.** The
  customer's card was charged. Open the payment in the dashboard using the id in
  the order note, decide what happened, and complete or refund the order
  yourself. Do not ask the customer to pay again.
