The site takes card payments through Cashflows or DNA Payments. Each provider has two set-ups on the Payments tab: test, which uses the provider's test system and takes no real money, and live, which takes real payments.
| Provider | Keys it needs | Where to find them |
|---|---|---|
| Cashflows (card) | Configuration ID and API key | The Cashflows Portal |
| DNA Payments (card) | Client ID, Client secret and Terminal ID | The DNA merchant portal |
Setting up a provider
- Open Payments and click the provider's test box to open it.
- Check Name shown at checkout, Tagline and Priority (lower first).
- Paste the provider's test keys into the key boxes.
- Press Save gateway. A Webhook URL now shows in the box.
- Copy the whole Webhook URL and paste it into the provider's notification (webhook) settings. This is how the provider tells the site a payment has gone through.
- Press Run healthcheck. You should see "Healthcheck passed", and the box heading shows health OK.
- Tick Enabled and press Save gateway again.
- Buy some tickets using the provider's test cards to check the whole journey.
- When test payments work, do the same in the live box with the live keys: save, paste the live Webhook URL into the provider, run the healthcheck, tick Enabled and save.
Tip. The test box and the live box each have their own Webhook URL. Paste each one into the matching test or live settings at the provider.
Tip. The Webhook URL has a secret built into it. Treat it like a password and only paste it into the provider's settings.
Test and live side by side
- Test set-ups only show at checkout to testers: any login the Owner has marked as a tester. Everyone else only sees live ones.
- Once a live set-up is switched on, a test card can only buy competitions set to Visibility Test, and never tops up a wallet: a test card can never buy real tickets or win real prizes. The shop is told whenever a test card payment goes through or is refused. Switch the test set-up off when you go live.
- Live set-ups show to every customer once they are enabled.
- If more than one is enabled, the lower Priority number shows first.
- Which cards are accepted (for example refusing credit cards) is set with the provider, not here.
The healthcheck
Run healthcheck asks the provider whether the stored keys work. The answer shows as a message ("Healthcheck passed" or "Healthcheck failed" with the reason), and the box heading keeps the result with the date and time. If it fails, check the keys were copied in full and that you put test keys in the test box and live keys in the live box.
Take care. Unticking Enabled on the live box, or saving wrong live keys, stops customers paying by card. Make changes to the live box when the site is quiet, and run the healthcheck straight after.
Every save and every healthcheck is written to the audit log.
Every site’s admin has this guide built in, with a help link on each page. All help articles.