WooCommerce plugin
Accept cards, wallets, and local payment methods in WooCommerce with the Pay.com Payments plugin.
Pay.com Payments for WooCommerce adds Pay.com's payment methods to the WooCommerce checkout. Customers pay with the cards, wallets, and local payment methods your Pay.com account offers, and they enter card details in Pay.com-hosted frames.
WooCommerce creates and validates each order before payment starts, and your store confirms every payment server-side with Pay.com before marking the order paid. To install and connect the plugin, see Set up the WooCommerce plugin. For all plugin options and defaults, see Settings.
Supported features
The plugin supports these checkout and order management features.
| Feature | Description |
|---|---|
| Checkout | Cards, wallets, and local payment methods at checkout and on the order's Pay for order page. By default, the card is entered in secure fields styled like your checkout, and each payment method is an option of its own. See Checkout settings. |
| Capture | Capture immediately, or authorize at checkout and capture later with the Capture Pay.com payment order action. |
| Refunds | Refund a captured payment from the WooCommerce order, in full or in part. Canceling an order that's only authorized releases the authorization. A refund made in the Pay.com dashboard is recorded on the order. |
| Express checkout | Apple Pay and Google Pay buttons on product pages, the cart page, the mini-cart, and the top of the checkout page. Customers pay without going through the checkout form, and WooCommerce still creates and validates the order first. A product page button buys only that product and leaves the cart as it was. |
| Saved cards | Logged-in customers can save a card in My account, or when they pay with the Pay.com payment form, and pay with it later. With card fields, a card is saved at checkout only for a subscription. Pay.com vaults the card, and WooCommerce stores only its brand, last four digits, and expiration date. |
| WooCommerce Subscriptions | Charges renewals to the customer's saved card, server to server, on the renewal order WooCommerce Subscriptions creates. A failed renewal marks its order failed, so WooCommerce Subscriptions retries it and emails the customer. Customers and admins can change a subscription's card. |
| Apple Pay domain | Serves Apple's domain association file and registers your domain with Apple through Pay.com. |
How orders stay in sync
Your store confirms each payment server-side with Pay.com. Webhooks and a background check every 15 minutes reconcile payments when a customer closes the browser before returning to your store.
| Pay.com outcome | WooCommerce order status |
|---|---|
| Paid | Marked paid (reduces stock and sends WooCommerce order emails). |
| Authorized (manual capture) | On hold, with a note to capture it from Order actions before the authorization expires. |
| Funds pending (for example, bank debit) | On hold, with a note not to ship until the funds clear. |
| Failed | Failed. |
| Requires manual review | On hold, with a note explaining why. |
The plugin subscribes to the 12 shared plugin webhook events.
A refund made in the Pay.com dashboard arrives as charge.refunded or
refund.succeeded. The plugin adds a WooCommerce refund for whatever Pay.com
refunded beyond what the order already shows, with a note on the order. It
doesn't refund the payment again or restock items.
Apple Pay
The Apple Pay button shows only on a domain registered with Apple. The store must be on HTTPS, at the root of its domain. In WooCommerce → Settings → Payments → Pay.com, under Apple Pay domain, click Register domain. Your store sends its domain to Pay.com, and Pay.com asks Apple to verify the domain association file that the plugin serves.
Data sent by the plugin
The plugin communicates with Pay.com in three ways:
- The checkout page loads Pay.com.js from
https://js.pay.com/v1. Card details are entered in Pay.com frames and sent only to Pay.com. - Your store's server calls the Pay.com API (
https://api.pay.com/v1, orhttps://api.sandbox.pay.com/v1in the sandbox) to create payment sessions, confirm payments, and refund them. - For Apple Pay, your store downloads Apple's domain association file from Pay.com at most once a day. It sends its domain to the Pay.com API when an administrator clicks Register domain.