Shopware plugin settings
Every setting of the Pay.com Payments plugin for Shopware 6, with its default.
The settings are under Settings → Extensions → Pay.com in the administration. Pick All Sales Channels at the top of the page to set the defaults, or one sales channel to give it settings and a Pay.com account of its own. A sales channel inherits what it doesn't set.
Pay.com account
The page has a card for each environment, Live and Sandbox. Each card shows whether the environment has a key and its last characters, and where its webhooks go. When the environment that Sandbox mode picks has no key, the top of the page says that the checkout doesn't offer Pay.com, and how to fix it. It tells you to paste the missing key on that environment's card, under Enter an API key instead, or, when the other environment has a key, to switch Sandbox mode.
| Setting | Description |
|---|---|
| Enter an API key instead | Opens the fields for an API key you created in the Pay.com dashboard (an sk-pay-com-live- key on the Live card and an sk-pay-com-sandbox- key on the Sandbox card). Paste it into API key and click Check and save the key. The key is checked with Pay.com before it's saved, stored encrypted, and never shown again. |
| Webhook signing secret | The signing secret of the webhook you added in the Pay.com dashboard for the environment. Paste it and click Save the secret. The card shows the URL to send the environment's events to. When you replace the secret, the one it replaces keeps verifying events for a day. |
| Disconnect | Removes the environment's key from the shop. A key you entered still works at Pay.com until you delete it in the Pay.com dashboard. |
Payments
These settings pick the environment and control capture and the order reference:
| Setting | Type | Default | Description |
|---|---|---|---|
| Sandbox mode | Switch | On | Orders are paid in your Pay.com sandbox 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. Live payments need a live key and the shop on HTTPS. |
| Capture | Select | Capture when the order is paid | Capture when the order is paid charges at checkout. Authorize only, capture later places an authorization. Capture it with Capture on the order's Pay.com card before it expires. |
| Capture when the order ships | Switch | Off | With Authorize only, capture later, setting the order's delivery to Shipped captures the authorization. A capture that doesn't go through leaves the order authorized, with a note, and is tried again every hour. |
| Reference prefix | Text | Empty | Shown in the Pay.com dashboard before the order number. Use a different prefix on each shop that shares a Pay.com account. |
Checkout
These settings control the payment form, how payment methods show, saved cards, and the headless return page:
| Setting | Type | Default | Description |
|---|---|---|---|
| Payment form | Select | Card fields and the shop's list of methods | Card fields and the shop's list of methods, the default, takes the card in secure Pay.com fields that look like your theme's inputs, next to your shop's own list of the other payment methods. Pay.com's drop-in shows every payment method in Pay.com's Universal checkout. With card fields, methods that leave for their provider's page take the whole window. |
| 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 of your Pay.com account as a Shopware payment method of its own when Pay.com offers it for the order, and lists the methods without one only under Other payment methods. Pay.com then holds the card and saved cards alone, and shows as Credit or debit card unless you rename it. One option, with the payment methods listed inside it lists the methods inside Pay.com. |
| Offer Apple Pay and Google Pay as payment methods | Switch | On | With card fields. Lists Apple Pay and Google Pay among the payment methods, when your Pay.com account has them set up and the customer's browser can pay with them. When a customer selects one, its button takes the place of Submit order and pays with the details they entered at checkout. |
| Saved cards | Switch | On | Customers with an account can save cards in their account and pay with a saved card at checkout. With Pay.com's drop-in, they can also save a new card while they pay. Card fields don't offer that. Guests never save cards. Cards saved in the sandbox are offered only in the sandbox. |
| Headless return page | URL | Empty | Sets the return page URL for headless storefronts after payment. It receives ?t=<token> and queries the Store API's /store-api/pay-com/status for the order status. |
The checkout falls back to Pay.com's Universal checkout 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. Payment methods that require unsupported custom fields are omitted from checkout.
To rename, sort, or switch off a payment method, go to Settings → Payment methods.
Your payment methods
Your payment methods lists the payment methods your Pay.com account offers in each environment, and when each list was read. It marks the environment the checkout pays in. The plugin reads the lists when you save a key and once a day. After you change your methods in the Pay.com dashboard, click Refresh. If a read fails, the card says why and keeps the last list.
With card fields and Each payment method is its own option, each method gets its own Shopware payment method under Settings → Payment methods:
- Newly synced methods are added automatically to sales channels that have Pay.com, after which you choose which sales channels offer each method.
- Apple Pay and Google Pay appear when enabled on your Pay.com account, regardless of whether they appear in the synced list.
- Methods your account no longer offers are switched off rather than deleted so existing orders can still be refunded. Re-enabling a method in Pay.com switches it back on during a refresh, unless you manually switched it off in Shopware.
- Deactivating the plugin switches off its payment methods, and reactivating it re-enables only the methods deactivated by the plugin (preserving any you switched off manually).
- Until the list is first synced, methods other than cards, Apple Pay, and Google Pay appear under Other payment methods.
Express checkout
These settings place Apple Pay and Google Pay buttons that pay without filling in the checkout. The wallets that show are the ones your Pay.com account offers.
| Setting | Default | Description |
|---|---|---|
| Apple Pay and Google Pay on product pages | On | Buys what the page's buy form picked, its variant and quantity, without touching the customer's cart. |
| Apple Pay and Google Pay on the cart page | On | Pays for the whole cart. |
| Apple Pay and Google Pay in the off-canvas cart | On | Pays for the whole cart, as the cart page does. |
| Apple Pay and Google Pay at the top of the checkout | On | Shown above the customer's details on the checkout's sign-in and registration step and at the top of the confirm page. Pays for the whole cart, and the order is placed from the details in the wallet's sheet. |
The buttons hide when the shop requires fields a wallet can't supply (a required additional address line, or for guests, a required birthday, a required data protection checkbox, or a double opt-in for guest orders). A required phone number is asked for in the wallet sheet. Under the buttons, a line links your terms and conditions page.
A guest who pays with express checkout gets a guest account, as a guest checkout does. A signed-in customer keeps their account, and the wallet's addresses are added to their address book.
Apple Pay domain
Apple Pay domain shows the sales channel's domain and, for each environment, whether it's registered with Pay.com. If it isn't, the Apple Pay button doesn't show on that domain. Click Register domain. Apple checks the domain association file the Storefront serves, so the shop must be on HTTPS at the root of its domain.
Logs
One setting controls how much the plugin logs:
| Setting | Type | Default | Description |
|---|---|---|---|
| Debug log | Switch | Off | Writes what the plugin does to var/log/pay_com_*.log, which always gets warnings and errors. Card data, the IDs of saved cards, and secrets are never logged. |
Set in the shop's environment
Two settings come from the shop's environment, .env or the server's own, never from the administration:
| Variable | Description |
|---|---|
PAY_COM_SECRET_KEY | The key material the plugin encrypts API keys and webhook secrets with. Without it, the plugin uses APP_SECRET. |
PAY_COM_PUBLIC_URL | The address Pay.com reaches the shop at, when it isn't APP_URL, for example behind a proxy. Webhook URLs use it. |