PrestaShop module
Accept cards, wallets, and local payment methods in a PrestaShop 8 or 9 shop with the Pay.com module.
The Pay.com module for PrestaShop 8 and 9 adds Pay.com's payment methods to PrestaShop's checkout. Customers pay with the cards, wallets, and local payment methods your Pay.com account offers, and enter card details in Pay.com-hosted frames.
PrestaShop creates and validates the order before any payment is taken, and the shop confirms every payment with Pay.com on its server before it marks the order paid.
To install the module and connect it to your Pay.com account, see Set up the PrestaShop module. Every setting and its default is in Settings.
Supported features
The module supports these checkout and order management features.
| Feature | Description |
|---|---|
| Checkout | Cards, wallets, and local payment methods on PrestaShop's payment step, with the Classic theme and Hummingbird. By default, the card is entered in secure fields styled like your checkout, and each payment method is an option of its own. See Checkout settings. |
| Capture | Capture when the order is placed, or authorize at checkout and capture later with Capture in the order page's Pay.com block, or when the order is marked shipped. |
| Refunds | A credit slip refunds its amount at Pay.com, whether it comes from a partial refund, a standard refund, or a return. Release authorization, or canceling an order that is only authorized, releases the authorization. |
| Payment review | A payment that doesn't match its order waits in Pay.com payment to review. Accept payment takes it as it is, and Deny payment refunds the payment and cancels the order. |
| Express checkout | Apple Pay and Google Pay buttons on product pages, the cart page, the window that opens when a product is added to the cart, and the top of the checkout page. Customers pay without going through the checkout's steps, and PrestaShop still creates and validates the order first. A product page button buys that one product and leaves the cart as it was. |
| Saved cards | Signed-in customers pay with their saved cards at checkout, and add or delete cards under My account → Saved cards. With Pay.com's form, they can also save a card when they pay. Card fields, the default, never save a card at checkout. Pay.com keeps the card. The shop keeps only its brand, last four digits, and expiration date. |
| Apple Pay domain | The shop serves Apple's domain association file and registers its domain with Apple through Pay.com. |
| Multistore | One Pay.com account for all shops, or one per shop. |
How orders stay in sync
The shop confirms each payment with Pay.com on its server. Webhooks, and a background check every 15 minutes on the module's cron, reconcile payments when a customer closes the browser before returning to your store.
A new order waits in Awaiting Pay.com payment, and PrestaShop's order confirmation email is held back until payment is authorized or captured.
| Pay.com outcome | PrestaShop order |
|---|---|
| Paid | Payment accepted, or On backorder (paid) for an order on backorder, with its invoice. PrestaShop sends the order confirmation. |
| Authorized (manual capture) | Pay.com payment authorized. Capture it from the order page before the authorization expires. |
| Funds pending, for example a bank debit | Awaiting Pay.com funds, until the funds clear. |
| Failed | Payment error, and inventory is restocked. The customer gets a copy of the cart, so they can pay again. |
| Requires manual review | Pay.com payment to review, with a note saying why. |
Once you move an order on, for example to Processing in progress or Shipped, the module leaves its state as you set it and notes later payment changes on the order. An order still unpaid after 24 hours is canceled, and inventory is restocked, once its payment session is blocked so it can't be paid later.
A payment that completes after its order went to Payment error reopens the order, unless its cart was ordered again. A payment for a Canceled order is refunded, or its authorization released. A refund made in the Pay.com dashboard is noted on its order.
The module subscribes to the 12 shared plugin webhook events.
Capture when the order ships
With Authorize only and Capture an authorized order when it is marked shipped, moving an authorized order to a shipped state captures the authorization first. If the capture fails, PrestaShop 9 stops the change and shows the reason. PrestaShop 8 can't stop it. The order is marked shipped, and the module removes the payment PrestaShop recorded and puts the order in Pay.com payment to review with a note.
Apple Pay
The Apple Pay button shows only on a domain registered with Apple. Under Apple Pay domain on the module's page, click Register domain for each environment. The shop sends its domain to Pay.com, and Pay.com asks Apple to check the domain association file that the module serves.
The shop must be on HTTPS at the root of its domain. A domain has one association file. The page warns you when a real file at /.well-known/apple-developer-merchantid-domain-association is served instead of the module's, or when another module, such as PrestaShop Checkout, serves its own file there first.
Data the module sends
The module communicates with Pay.com in three ways:
- The checkout page loads Pay.com.js from
https://js.pay.com/v1. Card details are entered in Pay.com frames and sent only to Pay.com. - The shop's server calls the Pay.com API (
https://api.pay.com/v1, orhttps://api.sandbox.pay.com/v1for the sandbox) to create payment sessions, to confirm, capture, and refund payments, to manage saved cards, and to read your account's payment methods. - For Apple Pay, the shop downloads Apple's domain association file from Pay.com at most once a day, and sends its domain to the Pay.com API when an employee clicks Register domain.