Testing [BETA]
Test your integration with imin's Authenticated Checkout without having to make actual bookings
There are many different flows within Checkout depending on whether:
What's being booked is a Facility or a Session;
Whether it's Free or Paid;
etc.
In order to test these within Authenticated Checkout, a number of special test values can be used in the Authenticated Checkout request.
If these are used, Authenticated Checkout enters "testing" mode. In this mode, you can use Authenticated Checkout exactly as you would in "live" mode. But when you press the book button, a payment will not actually be made and nothing will be booked.
However, a confirmation email will still be sent to the customer's email address and the webhooks will be called appropriately.
In this way, you can test your integration with imin's Authenticated Checkout without having to make an actual booking and spend money.
The Rules
For "testing" mode to work, all possible parameters must have a special test value.
You must use a Stripe test card number instead of a real card number e.g.
4242 4242 4242 4242
. Any card number that you use will result in a successful booking.
Test Parameters
OrderedItem identifier
This is the OrderedItem identifier
value that goes here:
The OrderedItem type
will have to match the ID
OrderedItem identifier | OrderedItem type | |
|
| A ScheduledSession which is free |
|
| A ScheduledSession which has a non-zero price |
|
| A facility Slot which is free |
|
| A facility Slot which has a non-zero price |
Offer id
This is the Offer id
value that goes here:
In order for a "member" offer to be selected, the customer must themselves be a member. This is indicated by the "Broker customer identifier" column.
Offer id | Broker customer identifier | |
| << any >> | Guest Checkout for an adult |
|
| Existing Member Checkout for an adult |
| << any >> | Guest Checkout for a junior |
|
| Existing Member Checkout for a junior |
Broker customer identifier
This is the Broker customer identifier
value that goes here:
Broker customer identifier | |
| Broker Customer who does not have an associated membership with the Booking System |
| Broker Customer who does have an associated membership with the Booking System |
Last updated