On this page

Store add-ons and online payment gateways ​

Purpose ​

An add-on gives an online store a new capability: a payment gateway at checkout, a messaging channel to shoppers, a tracking pixel, product feeds, a block for the theme's pages (a WhatsApp chat button, product reviews), or notices of store events sent to another system. The company gets an add-on from the marketplace, then installs it on each store separately from this screen (EC23).

Add-ons from other developers run on their developers' servers. They can reach the store only with the permissions the store owner approves at installation (EC24). The platform's own add-ons run inside the platform and are installed the same way (EC29).

Available today:

One of the platform's add-ons is the "WhatsApp chat button". It opens a chat with the store's WhatsApp number (or a number entered in the add-on's settings) and connects to no outside service.

How to get there ​

Open E-commerce → Store add-ons and choose the Store at the top of the screen. You can also get there from My purchases, with Install on a store on an add-on's licence, or from the store page, with Manage the store's add-ons.

Permissions ​

KeyLets you
ecommerce.addon.viewOpen the screen and see the add-ons, their status and the notice log
ecommerce.addon.installInstall, update (approve permissions) and remove add-ons
ecommerce.addon.updateChange settings, switch add-ons on and off, rotate the secret, connect again, send a notice again
ecommerce.addon.historySee the change history
ecommerce.order.refundRefund an online payment from the order page

Add-on cards ​

The screen shows every add-on the company holds a licence for, with its developer's name, its version and its status on the chosen store. If there are none, you see "The company has no add-ons yet" with an Open the marketplace button.

Statuses ​

StatusMeaning
Not installed on this storeThe company has a licence, but the add-on isn't installed on this store
Switched offInstalled but not switched on. Every add-on starts switched off after installation
RunningSwitched on and doing its job
Settings are not completeA required setting hasn't been entered. The add-on won't run until it is
Waiting for the add-on's serverAn external add-on whose server hasn't received its access yet
Runs only on a test storeA test payment gateway on a store that isn't marked Test store
Stopped: licence not activeThe licence expired or was refunded. See When a licence lapses

Install and approve permissions ​

  1. Select Install on the add-on's card.
  2. Read the approval screen. It shows what the add-on adds to the store, the Permissions it asks for in plain words, and Where it runs: inside the platform, or on its developer's servers, with the names of the only servers the platform contacts for it.
  3. Tick the approval box, then select Install. The add-on can't be installed without your approval.

Permissions that expose customer data are tagged Personal data, with the warning: "This add-on asks for personal data of your customers. Approve only if you trust its developer with it."

Rules:

  • You approve exactly the permissions requested, no more and no fewer. Buying an add-on doesn't grant it any permission by itself (EC24).
  • After installation the add-on stays Switched off. Complete its settings, then select Switch on.
  • For an external add-on, the platform sends its server a single-use connection request that is valid for ten minutes. The server uses it to receive an access token for this store only (EC25). If the server doesn't respond, select Connect again later.

Settings ​

Select Settings to open a form defined by the add-on itself. Secret values (passwords and connection keys) are never shown once saved. In their place you see "Saved. Leave empty to keep it." To remove one, choose Delete the saved value (EC25).

Any address you enter must start with https and be public. Internal addresses are refused (EC26).

Buttons and actions ​

ButtonWhat it does
Switch onThe add-on starts working. This is refused if required settings are missing or the server hasn't connected
Switch offAfter you confirm, the add-on stops immediately: the payment gateway is no longer offered and no notices are sent. The settings are kept
UpdateShown when a newer version is available. The approval screen opens again, and new permissions are tagged New in this version. The current version keeps running until you approve
Rotate secretAfter you confirm, creates a new signing secret. See Signing secret
Connect againFor an external add-on: sends the connection request to its server again
UninstallAfter you confirm, the add-on's access to the store ends immediately. Its settings are kept for a later installation
Uninstall and delete settingsLike uninstalling, but also deletes the settings and secret values. This can't be undone

Refund before you remove a gateway

Once a payment gateway is removed, it can no longer report payments or carry out refunds. Make any refunds you need before you remove it.

Signing secret ​

The platform signs every notice it sends with a secret that belongs to the add-on's installation on this store, so the receiving system can check where the notice came from (EC25).

  • For the Generic webhooks add-on, the secret is shown once: at installation and when you rotate it. Copy it to the receiving system, then select I saved it. It can't be shown again.
  • After a rotation, notices are signed with both the old and the new secret for 24 hours, so you can change it in the receiving system without interruption.
  • For an external add-on, its server receives the new secret directly. It isn't shown on screen.

Notices sent to add-ons ​

The Notices sent to add-ons table lists every store event sent to an add-on: when it was sent, its type, the add-on, the status, the number of attempts, the last response and the next attempt.

StatusMeaning
WaitingNot delivered yet. It's retried automatically
DeliveredThe receiving system accepted it
Failed for goodEvery attempt failed
StoppedThe add-on was switched off or removed before the notice was delivered

If a notice fails, it's retried after 1 minute, then 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours (EC26). Send again resends a delivered notice or one that failed for good, after you confirm. A notice that is still waiting is retried automatically and can't be resent by hand.

Events sent today: an order is created, confirmed, fulfilled, cancelled or paid, and an amount is refunded.

Online payment gateways ​

A payment gateway is an add-on like any other (EC27). Once installed and switched on, it appears at checkout on the store website, after the payment methods the store defines. The shopper is sent to the gateway's page and then back to the store. The Online payment gateways section of the store page shows which gateways are Offered at checkout.

Rules:

  • The platform asks the gateway for exactly the order amount, in the store currency. It accepts a payment report only if the amount and currency match and the report is signed, and a duplicate report is never counted twice.
  • Payments and refunds appear on the order page.
  • The Test payment gateway is provided by the platform for testing payments. It collects no money, runs only on a store marked Test store, and lets the tester choose the payment outcome on its page.
  • There's no real payment gateway in the marketplace yet.

Carriers ​

A carrier add-on creates shipments for orders and follows their status. It may also show shipping rates to the shopper at checkout. Once it's installed and switched on, the Create shipment button appears on the order page.

  • Manual shipping (a carrier of your choice), from the platform: ship with any company, enter the tracking number yourself, and update the shipment status by hand. Its settings are the Carrier name (suggested for each shipment) and the Tracking link pattern, an https address with {tracking} where the tracking number goes. It connects to no outside service and shows no rates.
  • An external carrier: books the shipment on its own server and returns the tracking number, tracking link and shipping label, then reports the shipment status through signed reports. At installation it asks for permission to customer data, because a shipment needs the recipient's name, phone and address.

Shipping rates at checkout (EC47):

  • The carrier's rates are shown to the shopper after they enter the city, in addition to the shipping methods the store defines.
  • If the carrier doesn't answer within three seconds, or gives an invalid answer, only the store's own shipping methods are shown and checkout carries on.
  • A rate is accepted only in the store currency, as a whole number of its smallest unit. If even one rate comes in another currency or as a fraction, the carrier's whole answer is dropped.
  • The order is charged exactly the rate that was shown. A quoted rate stays valid for 30 minutes for the same cart and city.

There's no add-on for a specific carrier in the marketplace yet.

Accounting impact ​

The online store posts an order's money to the accounts through Cash and banks (EC56):

  • A payment captured by the gateway becomes a receipt voucher from the order's customer: debit the gateway's clearing account, credit the customer.
  • A refund completed by the gateway becomes a payment voucher: debit the customer, credit the same clearing account.

You choose the account for each store and payment method in Payment method accounts. If no account is chosen, nothing is posted, and the order shows this. Revenue and tax are posted by the sales order's invoice. See Postings to the accounts.

When a licence lapses ​

If an add-on's licence expires or is refunded (EC28):

  • The add-on stops immediately. The payment gateway isn't offered at checkout, no notices are sent, and its server's access is refused.
  • Nothing is deleted: the installation, settings and log all stay.
  • Reports on payments that started before the stop are still accepted, and paid orders can still be refunded while the add-on is installed.
  • For a carrier: its rates aren't shown and no new shipments can be created with it. Earlier shipments stay on the order and visible to the customer, and the carrier's status reports for a shipment under way are still accepted.
  • If the licence is renewed, the add-on starts working again with its settings.

Error messages ​

CodeWhen it appears
ecommerce_addon_scopes_not_approvedThe requested permissions weren't approved exactly as requested
ecommerce_addon_licence_inactiveThe add-on's licence isn't active
ecommerce_addon_not_configuredYou tried to switch on an add-on with a required setting missing
ecommerce_addon_setting_invalidA setting value is invalid, or an address is internal or doesn't start with https
ecommerce_addon_sandbox_onlyYou tried to switch on a test gateway on a store that isn't a test store
ecommerce_addon_unreachableThe add-on's server couldn't be reached
ecommerce_webhook_pendingYou tried to resend a notice that is still waiting to be sent