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.
| Setting | Description |
|---|---|
| API key | Paste 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 secret | The 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 sandbox | Removes 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:
| Setting | Type | Default | Description |
|---|---|---|---|
| Enabled | Yes/No | No | Takes payments with Pay.com. The PAY_COM payment method in Merchant Tools → Ordering → Payment Methods must be enabled too. |
| Sandbox mode | Yes/No | Yes | Takes 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. |
| Capture | Select | Automatically when the shopper pays | Automatically 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 ships | Yes/No | Yes | With Authorize only; capture later, the PayCom-CaptureShipped job captures authorized orders once their shipping status is SHIPPED. |
| Order reference prefix | Text | Empty | Shown in the Pay.com dashboard before the order number. Use a different prefix on each site that shares a Pay.com account. |
| Saved cards | Yes/No | Yes | Registered 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 payments | Select | Refund a payment the order can no longer take | A 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:
| 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 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 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. Every option is the same PAY_COM payment method. |
| List Apple Pay and Google Pay with the other payment methods | Yes/No | Yes | With 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.
| Setting | Default | Description |
|---|---|---|
| Express checkout on product pages | Yes | Buys the product from a basket of its own. The customer's basket stays as it was. |
| Express checkout on the cart | Yes | Pays for the whole basket. |
| Express checkout in the mini-cart | Yes | Pays for the whole basket, as the cart does. |
| Express checkout at the top of the checkout page | Yes | Shows 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:
| Setting | Type | Default | Description |
|---|---|---|---|
| Payment sessions per visitor per 15 minutes | Number | 20 | How many new payment sessions one visitor can start. |
| Fail unpaid orders after (minutes) | Number | 60 | The 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:
| Setting | Type | Default | Description |
|---|---|---|---|
| Headless: return page URL | Text | Empty | Sets 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 URL | Text | Empty | The 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:
| Permission | What it opens |
|---|---|
PAY_COM_SETTINGS | Merchant Tools → Pay.com → Settings and Connect (keys, webhook secrets, payment methods, and Apple Pay domain). |
PAY_COM_ORDERS | Merchant Tools → Pay.com → Orders (capture, void, refund, accept, and deny actions). |
Give them to roles in Administration → Organization → Roles & Permissions.