Test and Live Card Payments
How test mode works for card payments, how to place a safe test order, and how to switch your site over to live payments with confidence.
Your site can take card payments in one of two modes:
Test mode. Checkout works exactly as normal, but no real money is taken. This is perfect for trying everything out before you launch.
Live mode. Real card payments are taken and paid into your Cashflows merchant account.
Every new site starts in test mode. You switch to live mode yourself when you are ready, using the Cashflows Live Payments toggle.
This page builds on Payment Gateway, which covers applying to Cashflows and finding your details.
Where the Switch Lives
In the admin panel, find the Content group in the left-hand menu and click Settings.
Click Payments in the settings menu.
Scroll to the Cashflows Configuration section.
Find the Cashflows Live Payments toggle.
The toggle is off by default. Underneath it you will see the reminder: "Enable this only when ready for live payments. Test mode is safer for development".
Off (test mode)
Card payments go to the Cashflows test system. No real money is taken from the card.
On (live mode)
Card payments are real. Money is taken from the customer's card and paid into your Cashflows account.
What Customers See in Test Mode
While Cashflows Live Payments is off, a yellow warning box appears on your checkout page, just above the payment options. It says:
Card Payment Testing ENABLED. Real Money not taken.
This is your quickest way to tell which mode your site is in. If you can see this box, you are in test mode. If it has gone, you are live.
A few things to know about test mode:
It only affects card payments. Orders paid fully with Wallet use the customer's site credit, so their balance really does go down.
If you have Enable Wallet Top Up switched on in Settings, then Checkout, card top ups on the customer's wallet page also follow test or live mode.
Test card orders still create real orders, tickets and confirmation emails on your site. That is why you should only test on a competition customers cannot see, and tidy up afterwards.
Place a Safe Test Order
The safest way to test is on a competition that is not active. Customers cannot see or enter an inactive competition, but you can still open it and buy tickets while you are logged in with your admin account.
Create a test competition
In the admin panel, click Competitions in the left-hand menu.
Click New Competition.
Give it a clear name, such as TEST DO NOT ENTER, and a low ticket price.
Set an end date in the future. You cannot buy tickets for a competition that has ended.
Leave the Active toggle off.
Save the competition.
For a full guide to the competition form, see Create a Competition.
Buy a ticket
Add a ticket to your basket and go to the checkout. Check you can see the yellow Card Payment Testing ENABLED box if you are in test mode.
Choose Cards, Apple & Google Pay, tick I am over 18 & agree to the terms and conditions, and click Pay. You will be taken to the Cashflows payment page.
Check the results
Check the order appears in the admin panel under Orders (in the Competitions group of the left-hand menu), with your tickets.
Check the order confirmation email arrives in your inbox. If it does not, see Email Setup.
Switch to Live Payments
When Cashflows has approved your account and your site is ready, follow these steps.
Place one real, low value order
Repeat the safe test order above on your inactive test competition, this time paying with your own real card. Check that:
the yellow testing banner has gone from the checkout
the payment goes through and you see your order confirmation
the order shows in Orders, and the confirmation email arrives
the payment appears in your Cashflows dashboard
Cancel the test order
Open the order in Orders and click Cancel Order. Read the confirmation box carefully before you confirm:
Untick the box that adds the order total to the customer's site credit, unless you want that credit on your own account.
Cancelling in Rafflex does not send money back to your card. Refund the payment yourself inside your Cashflows dashboard.
The full explanation of the cancel options is in Cancelling and Refunding Orders.
Tidy up
Delete your test competition, or make sure it stays inactive, so it never appears on your site. See Managing Your Competitions for how to delete one. Then work through the Launch Checklist.
Going Back to Test Mode
You can switch Cashflows Live Payments off again at any time, for example if you want to test a change. Remember:
While it is off, the testing banner shows on your checkout and no real money is taken, even from real customers.
Your live Cashflows details are meant for live mode, so card payments may fail until you switch back.
For these reasons, do not switch back to test mode on a site that is already open to customers. If you need to test something on a live site, contact Rafflex support first.
Cashflows Webhook-Only Mode
You will also see a toggle called Cashflows Webhook-Only Mode in the Cashflows Configuration section. It is off by default, and you should leave it off unless Rafflex support advises you to turn it on.
When it is on, customers who have just paid are shown a short Processing Your Payment page while their payment is confirmed. It asks them to wait on the page, and they are moved on to their order confirmation automatically once the payment is confirmed.
Payment Gateways and What Customers See
The Payment Gateways tick boxes in the Card Provider section decide which payment options appear at checkout. Here is how each one looks to your customers:
Cards, Apple & Google Pay
Cards, Apple & Google Pay, with card logos
Whenever the order costs something
Wallet
Wallet, with their balance
When a signed-in customer's site credit covers the whole order
Partial Wallet + Card
Wallet + Card, with their balance
When a signed-in customer has some site credit, but not enough for the whole order
When a customer chooses Wallet + Card, a note appears explaining how much is being paid with site credit and how much will be paid by card. They then pay the remainder on the Cashflows payment page as normal.
Last updated