Skip to Content
Docs
E-commerce pluginsMagento

Magento module settings

Every setting of the Pay.com module for Magento 2 and Adobe Commerce, with its default.

The settings are under Stores → Configuration → Sales → Payment Methods → Pay.com. They're set for the default scope or a website, so each website can have its own Pay.com account. Title, Card title, Offer Apple Pay and Google Pay as payment methods, the express checkout settings, each payment method's own Title, and Headless return page can also be set per store view.

General

These settings turn Pay.com on and name it at checkout:

SettingTypeDefaultDescription
EnabledYes/NoNoOffers Pay.com at checkout.
TitleTextCard and other payment methods (Pay.com)The payment method's name at checkout when Pay.com is shown as a single payment method (with the Pay.com payment form, or with card fields and One option, with the payment methods listed inside it). When the checkout shows the Pay.com payment form in place of card fields, the card's payment method takes this title too, since that form offers every payment method.

Pay.com account

The account block shows the store's two environments, Live and Sandbox. For each one it shows whether the store has a key and its last four characters, and whether webhooks are set up. It also shows the Webhook URL to send events to (https://<your store>/pay-com/webhook). When the environment Payments picks has no key, the block warns that Pay.com doesn't show at checkout and names the key field to fill in, for example "Payments is set to Sandbox, but this store has only a live API key. Enter your Pay.com sandbox API key in the Sandbox API key field, or set Payments to Live." Your payment methods and Apple Pay domain say the same.

SettingDescription
Sandbox API keyPaste an sk-pay-com-sandbox- key you created in the Pay.com dashboard. The key is checked with Pay.com before it's saved, stored encrypted, and never shown again. An empty field keeps the saved key.
Live API keyThe same for an sk-pay-com-live- key.
Remove keyRemoves the key you entered for the environment from the store. The key still works at Pay.com until you delete it in the Pay.com dashboard.
Sandbox webhook signing secret, Live webhook signing secretThe signing secret of the webhook you added in the Pay.com dashboard for the environment, which sends events to the Webhook URL. When you replace it, the secret it replaces keeps verifying events for 24 hours.
Sandbox previous webhook secret, Live previous webhook secretAn older signing secret, so events signed with it still verify while you rotate the secret.

Environment

Payments picks the environment the store takes payments in:

SettingTypeDefaultDescription
PaymentsSelectSandbox (test payments)Sandbox (test payments) takes payments in your Pay.com sandbox with the sandbox key, through https://api.sandbox.pay.com/v1. Live takes live payments with the live key, through https://api.pay.com/v1. Live needs a live key and the store on HTTPS. Otherwise, Payments stays set to Sandbox (test payments), and the page says why.

Payments

These settings control capture, saved cards, the order reference, and where Pay.com is offered:

SettingTypeDefaultDescription
CaptureSelectCapture when the customer paysCapture when the customer pays charges at checkout. Authorize only; capture by invoicing the order places an authorization. Invoice the order with Capture Online to capture it before it expires.
Capture when the order shipsYes/NoNoShown with Authorize only. The first shipment of an authorized order invoices the whole order and captures the authorization, even when only part of it ships. If the capture fails, the shipment is kept and the order is put on hold with the reason.
Saved cardsYes/NoYesLogged-in customers can save a card at checkout in Pay.com's payment form, which asks them, pay with it next time, and remove it under My Account → Stored Payment Methods. With card fields, the default Payment form, there's no option to save a card at checkout. Cards saved in the sandbox are offered only in the sandbox, and live cards only in the live environment.
Order reference prefixTextEmptyShown in the Pay.com dashboard before the order number. Use a different prefix on each store that shares a Pay.com account.
Payment from Applicable CountriesSelectAll Allowed CountriesOffers Pay.com in every country the store allows, or only in Specific Countries.
Payment from Specific CountriesMultiselectEmptyThe countries Pay.com is offered in, with Specific Countries.
Sort OrderText10Where Pay.com sits among the checkout's payment methods.

Checkout

These settings control the payment form and how payment methods show at checkout:

SettingTypeDefaultDescription
Payment formSelectCard fields styled like your checkout, with your payment methods listedCard 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 checkoutSelectEach payment method is its own optionWith card fields. Each payment method is its own option shows the card and each of your payment methods as a payment method of its own, when Pay.com offers it for the order. The methods without one show under Other payment methods. One option, with the payment methods listed inside it shows a single Pay.com payment method.
Card titleTextCredit or debit cardThe card's name at checkout when each payment method is its own option.
Offer Apple Pay and Google Pay as payment methodsYes/NoYesWith card fields. Lists Apple Pay and Google Pay among the payment methods. Each shows only in a browser that can pay with it. 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, and Place Order validates them before placing the order. Payment methods that require unsupported custom fields are omitted from checkout.

Each payment method's own option has Enabled, Title, and Sort Order in a group at the end of the Pay.com settings, such as Payment method: PayPal. An empty Title uses the method's name, and an empty Sort Order uses the Pay.com Sort Order.

Your payment methods

Your payment methods lists the payment methods your Pay.com account offers, in the environment Payments picks, and when they were read. When each payment method is its own option, each one is a payment method at checkout, shown when Pay.com offers it for the order. Apple Pay and Google Pay show when your account has them set up. The list is read when you save an API key and again once a day. After you change your methods in the Pay.com dashboard, click Refresh. If a read fails, the list it had is kept and the page says why. 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.

SettingDefaultDescription
Apple Pay and Google Pay on product pagesYesUnder Add to Cart. Buys the product shown, with the options picked in its form, without touching the customer's cart.
Apple Pay and Google Pay on the cart pageYesUnder Proceed to Checkout. Pays for the whole cart.
Apple Pay and Google Pay in the mini-cartYesPays for the whole cart, as the cart page does. The buttons load only once the customer opens the mini-cart.
Apple Pay and Google Pay at the top of the checkout pageYesAbove the customer's details. Pays for the whole cart. The wallet collects the customer's email, phone, and addresses, and the order is placed from them, without filling in the checkout form.

The buttons hide when the checkout requires information a wallet can't provide, such as a required company, prefix, suffix, fax, or custom address field, or a terms and conditions checkbox. They also hide for guests when guest checkout is off, below the minimum order amount, and for products other than simple, virtual, and configurable ones.

Apple Pay domain

Apple Pay domain shows the website's domain and, for each environment with a key, 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 module serves, so the store must be on HTTPS at the root of its domain. The settings page warns you when it isn't.

Headless return page

The GraphQL module adds this setting:

SettingTypeDefaultDescription
Headless return pageTextEmptyAdded by the GraphQL module. Sets the storefront page customers return to after 3D Secure or a redirect payment method for payments started through GraphQL (for example, https://shop.example.com/pay-com/return). The module adds ?t=<token>, and the page sends the token to the payComOrderPaymentStatus mutation. Empty uses Magento's own return page.

Debug log

One setting adds detail to the module's log:

SettingTypeDefaultDescription
Debug logYes/NoNoAlso logs what each payment check decided, in var/log/pay-com.log, which always gets warnings and errors. Card data and secrets are never logged.

The keys and secrets are encrypted with the encryption key in app/etc/env.php. If the store can no longer decrypt them, for example after its database was copied to another installation, the account block says so. Enter the keys again.

Was this page helpful?