Skip to Content
Docs
E-commerce pluginsSalesforce Commerce Cloud

Salesforce Commerce Cloud cartridge settings

Every setting of the Pay.com cartridges for Salesforce B2C Commerce, with its default.

The settings are configured per site in two places in Business Manager. Manage keys and payment methods under Merchant Tools → Pay.com → Settings and Connect, and configure all other options under Merchant Tools → Site Preferences → Custom Preferences → Pay.com.

Pay.com account

Merchant Tools → Pay.com → Settings and Connect shows the active environment, whether Pay.com is enabled, and the URL webhooks go to. It has a section for each environment, Live and Sandbox, with the key's and the webhook secret's last four characters, and your payment methods. If the active environment has no key, the top of the page names the missing site preference using its literal Business Manager label and section (for example, Production sandbox API key in the Sandbox section for a sandbox key). When the other environment has a key, it also says you can turn Sandbox mode on or off instead. Register for Apple Pay names the missing key the same way. Business Manager users need the PAY_COM_SETTINGS permission to open the page.

SettingDescription
API keyPaste an sk-pay-com-live- key in the Live section and an sk-pay-com-sandbox- key in the Sandbox section, from the Pay.com dashboard, then click Save. The key is checked with Pay.com before it's saved, and stored in a password site preference.
Webhook secretThe signing secret of the webhook you added in the Pay.com dashboard for the environment, which sends events to the URL the page shows. When you replace it, the secret it replaces keeps verifying events for 24 hours.
Disconnect live, Disconnect sandboxRemoves the environment's key, and its list of payment methods, from the site.

Payments

These settings turn Pay.com on, pick the environment, and control capture, saved cards, and late payments:

SettingTypeDefaultDescription
EnabledYes/NoNoTakes payments with Pay.com. The PAY_COM payment method in Merchant Tools → Ordering → Payment Methods must be enabled too.
Sandbox modeYes/NoYesTakes payments 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.
CaptureSelectAutomatically when the shopper paysAutomatically when the shopper pays charges at checkout. Authorize only; capture later places an authorization. Capture it in Pay.com → Orders before it expires.
Capture when the order shipsYes/NoYesWith Authorize only; capture later, the PayCom-CaptureShipped job captures authorized orders once their shipping status is SHIPPED.
Order reference prefixTextEmptyShown in the Pay.com dashboard before the order number. Use a different prefix on each site that shares a Pay.com account.
Saved cardsYes/NoYesRegistered customers can save cards with Pay.com in Universal checkout, which asks them, and pay with them. With card fields, there's no option to save a card at checkout. Customers add cards in My Account. Cards saved in the sandbox are offered only in the sandbox.
Late paymentsSelectRefund a payment the order can no longer takeA payment that completes after its order failed reopens the order when the stock is still there. Otherwise Refund a payment the order can no longer take refunds the payment, and Keep it and hold the order for review keeps it and holds the order.

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 storefront's list of payment methods. Pay.com drop-in shows Pay.com's Universal checkout, 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 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. Every option is the same PAY_COM payment method.
List Apple Pay and Google Pay with the other payment methodsYes/NoYesWith card fields. Lists Apple Pay and Google Pay among the payment methods, in browsers that can pay with them. 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 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.

Your payment methods

Each environment's section of Merchant Tools → Pay.com → Settings and Connect lists the payment methods your Pay.com account offers there, and when they were read. With Each payment method is its own option, each of them gets an option at checkout, shown when Pay.com offers it for the order. The list is read when you save a key, and once a day by the PayCom-RefreshPaymentMethods job. After you change your methods in the Pay.com dashboard, click Refresh. If a read fails, the page says why and keeps the last list.

Other payment methods is always among the options, and shows when the order offers a payment method that no other option is for. Until the list is first read, or if its first read fails, the methods other than the card, Apple Pay, and Google Pay show there.

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
Express checkout on product pagesYesBuys the product from a basket of its own. The customer's basket stays as it was.
Express checkout on the cartYesPays for the whole basket.
Express checkout in the mini-cartYesPays for the whole basket, as the cart does.
Express checkout at the top of the checkout pageYesShows the buttons above the customer's details. They pay for the whole basket. The wallet collects the customer's email, phone, and addresses, and the order is placed from them.

The wallet sheet asks for the customer's email and phone, and the buttons don't show for a product that can't be ordered.

Limits

These settings limit payment sessions and unpaid orders:

SettingTypeDefaultDescription
Payment sessions per visitor per 15 minutesNumber20How many new payment sessions one visitor can start.
Fail unpaid orders after (minutes)Number60The reconciler blocks the payment session of an order unpaid this long, then fails the order. An order with a payment in flight is kept.

PWA Kit

These settings point the cartridges at your PWA Kit storefront's pages:

SettingTypeDefaultDescription
Headless: return page URLTextEmptySets the HTTPS return page URL for PWA Kit storefronts after payment. It receives ?t=<token> and passes it to POST /returns on the pay-com Custom API.
Headless: card saved page URLTextEmptyThe account page customers come back to after adding a card, on HTTPS. It gets ?t=<token> too.

Business Manager permissions

Two permissions open the cartridges' Business Manager pages:

PermissionWhat it opens
PAY_COM_SETTINGSMerchant Tools → Pay.com → Settings and Connect (keys, webhook secrets, payment methods, and Apple Pay domain).
PAY_COM_ORDERSMerchant Tools → Pay.com → Orders (capture, void, refund, accept, and deny actions).

Give them to roles in Administration → Organization → Roles & Permissions.

Was this page helpful?