WooCommerce plugin settings
Every setting of the Pay.com Payments plugin for WooCommerce, with its default.
The settings are under WooCommerce → Settings → Payments → Pay.com.
General
These settings turn Pay.com on and name it at checkout:
| Setting | Type | Default | Description |
|---|---|---|---|
| Enable | Checkbox | Off | Offers Pay.com at checkout. |
| Title | Text | Card and other payment methods | The option's name at checkout when one option lists the payment methods, as with the Pay.com payment form. |
| Card option title | Text | Credit or debit card | The card option's name when each payment method is an option of its own. |
| Description | Text area | Empty | Text shown with the payment method at checkout. |
Pay.com account
The store keeps one connection per environment, shown as Live and Sandbox. Sandbox uses https://api.sandbox.pay.com/v1. Each environment shows where its key comes from (an API key you entered, or a constant in wp-config.php) and the key's last four characters.
| Setting | Description |
|---|---|
| Enter an API key instead | Paste an API key you created in the Pay.com dashboard (an sk-pay-com-live- key under Live and an sk-pay-com-sandbox- key under Sandbox). The key is checked with Pay.com when you save, stored encrypted, and never shown again. This is how you set up the plugin. |
| Remove key | Stops using the key you entered for the environment. |
| Signing secret | The webhook signing secret for the environment. In the Pay.com dashboard, send events to the URL shown here and paste the secret. |
| Previous secret | While you rotate the webhook secret, keep the old one here until the new one works, then remove it. |
Sandbox mode
Sandbox mode picks the environment the store takes payments in:
| Setting | Type | Default | Description |
|---|---|---|---|
| Sandbox mode | Checkbox, labeled "Take test payments in your Pay.com sandbox" | On | Takes test payments with the Sandbox key, through https://api.sandbox.pay.com/v1. Turn it off to take live payments with the Live key, through https://api.pay.com/v1. Turning it off needs a live key and the site on HTTPS. Otherwise, Sandbox mode stays on. |
Pay.com shows at checkout only when the environment Sandbox mode picks has a key. Until it does, Your payment methods and Apple Pay domain say which key to enter, for example "Sandbox mode is on, but only a live API key is saved. Enter a sandbox API key, or turn off Sandbox mode." With no key saved at all, they say "Enter your Pay.com API key first."
Payments
These settings control capture, the order reference, and saved cards:
| Setting | Type | Default | Description |
|---|---|---|---|
| Capture | Select | Capture immediately | Capture immediately charges at checkout. Authorize only, capture from the order places an authorization. Capture it with the Capture Pay.com payment order action before it expires. |
| Order reference prefix | Text | WC- | Shown in the Pay.com dashboard before the order number. Use a different prefix on each store that shares a Pay.com account. |
| Saved cards | Checkbox | On | Lets logged-in customers save cards and pay with them later. Customers manage their cards in My account. With card fields, there's no option to save a card at checkout. A card is saved only for a subscription, without asking. |
Checkout
These settings control the payment form and how payment methods show at checkout:
| Setting | Type | Default | Description |
|---|---|---|---|
| Payment form | Select | Card fields styled like your checkout, with your payment methods listed | Card fields, the default, take the card in secure Pay.com fields that look like your checkout's own inputs, next to your store's list of payment methods. Pay.com payment form shows Pay.com's own form, with every payment method in it. |
| Payment methods at checkout | Select | Each payment method is its own option | With card fields. Each payment method is its own option shows each method as a payment option when Pay.com offers it for the order, and methods without an option of their own under Other payment methods. One option, with the payment methods listed inside it shows a single Pay.com option. |
| Offer Apple Pay and Google Pay as payment methods | Checkbox | On | With card fields. Lists Apple Pay and Google Pay among the payment methods. When a customer selects one, its button takes the place of Place order and pays with the details they entered at checkout. |
The checkout falls back to the Pay.com payment form if card fields aren't available or don't support any of the order's payment methods. With card fields, a payment method that requires additional details (such as a bank or code) shows inputs for them at checkout. Payment methods that require unsupported custom fields are omitted from checkout.
To turn a payment method's option off, rename it, or reorder it, go to WooCommerce → Settings → Payments.
Your payment methods
Your payment methods lists the payment methods your Pay.com account offers, in the environment Sandbox mode picks, and when they were read. When each payment method is its own option, each one gets an option at checkout, shown when Pay.com offers it for the order. Apple Pay and Google Pay show when your account has them set up. After you change your methods in the Pay.com dashboard, click Refresh. The list is also read again once a day. Until the list is first read, the methods other than the card, Apple Pay, and Google Pay show under Other payment methods.
Express checkout
These settings place Apple Pay and Google Pay buttons that pay without the checkout form. The wallets that show are the ones your Pay.com account offers.
| Setting | Default | Description |
|---|---|---|
| Apple Pay and Google Pay buttons on product pages | On | Customers buy one product without leaving its page. Their cart stays as it was. |
| Apple Pay and Google Pay buttons on the cart page | On | Pays for the whole cart. |
| Apple Pay and Google Pay buttons in the mini-cart | On | Pays for the whole cart, as the cart page does. Not shown on the checkout and cart pages, which have their own. |
| Apple Pay and Google Pay buttons at the top of the checkout page | On | The wallet collects the customer's email, phone, and addresses, and the order is placed from them without filling in the checkout form. |
Apple Pay domain
Apple Pay domain shows whether the store's domain can run Apple Pay. If it isn't registered yet, the Apple Pay button doesn't show. Click Register domain. Apple checks the domain association file the plugin serves, so the store must be on HTTPS at the root of its domain.
Debug log
One setting turns on detailed logging:
| Setting | Type | Default | Description |
|---|---|---|---|
| Debug log | Checkbox | Off | Logs API calls and decisions to WooCommerce → Status → Logs. |
Keep secrets in wp-config.php
Instead of storing them in the database, you can define the API keys and webhook secrets as constants in wp-config.php. A constant takes precedence over a stored value, and keeps that secret out of the database entirely.
define( 'PAY_COM_LIVE_API_KEY', 'sk-pay-com-live-…' );
define( 'PAY_COM_LIVE_WEBHOOK_SECRET', 'whsec-pay-com-live-…' );
define( 'PAY_COM_SANDBOX_API_KEY', 'sk-pay-com-sandbox-…' );
define( 'PAY_COM_SANDBOX_WEBHOOK_SECRET', 'whsec-pay-com-sandbox-…' );PAY_COM_SANDBOX_API_KEY and PAY_COM_SANDBOX_WEBHOOK_SECRET hold the sandbox's key and secret.
Secrets stored in the database are encrypted with PAY_COM_ENCRYPTION_KEY from wp-config.php when it's defined and at least 32 characters long, or with the site's LOGGED_IN salts otherwise.