> ## Documentation Index
> Fetch the complete documentation index at: https://playbook.smedleygroup.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Making a Test Payment

> Details the basics of making a test payment in our booking platform as a part of the new hub deployment process.

## Overview

As a part of the new hub deployment process, we must make some checks to ensure the platform is functioning end-to-end correctly.
One of these checks is to make a test payment. This SOP details the steps to make a test payment and verify that it was successful.

> [!NOTE]
>
> This must be done ONCE per hub deployment. If more than one is required, contact Matt/finance to inform and confirm.

> [!WARNING]
>
> This is a **real payment**. The card used will be charged and the transaction will need to be refunded.
> You are acting in the PROD environment, so be careful to make the asbolute minimum of actions.

> [!NOTE]
>
> The images below are taken from the DEV environment, not PROD, hence the larger amounts and different URLs.

***

## Prerequisites

* All previous development team and deployment team steps have been completed.
* The hub is enabled in the database configuration.

***

## Making a Test Payment

**1. Create a new event**

In the new PROD seller, create a new event with the following details:

| Field | Value |
| - | - |
| Name | `Dev Team Initial Test Event` |
| Metadata -> Type | `Testing` |
| Event start/end | `The day after the event is created` |
| Sales start/end | `The start of the current day until the end of the current day` |
| Categories | `One category with a single ticket type, volume = 1` |
| Ticket types | `One ticket type with a price of 1.00, volume = 1, eligibleClasses = BB,BR2R,CADL,CADH,CR2R,JRH,JRL,JR2R ; eligibleParts = D1/AM` |

**2. Save**

Click **Save** to apply the changes.

**3. Make the checkout**

Copy the new event's ID.
Then, in a new browser tab, navigate to the checkout page for the event using the following URL format:

```
https://events.fat-kartingleague.com/{REGION}/events/{EVENT_ID}
```

![Go to checkout](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/book-now-button.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=613b81ceaa7c76ee7323b51823472d6c)

Add the ticket type you created to the cart for one of your drivers.

![Go to vivenu for payment](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/secure-your-spot-now.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=30b6e55ef344f64b38b2e17400600d0b)

You should be redirected to `https://shop.{REGION}.fat-kartingleague.com` domain for the payment. Enter your details.

![Enter your details](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/your-details.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=686307006eb7c0b6f6a16a6868189b32)

Enter your card details.

![Enter your card details](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/card-details.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=ca445c2d6d750f06b3657ab7179166ce)

Complete the payment.

![Order confirmation](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/order-confirmation.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=75eebb97f0ef2a1906f984d26ef3cc68)

**4. Verify the payment**

Go to the Teams notification channel created for this hub.
There should be a new notification for the new ticket.

![New ticket notification](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/webhook-message.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=191c89017b3d891958b06c1567779b76)

Click the link in the notification to view the ticket in the OD. If you are signed out, sign in and then click the link in the teams message again.

![The ticket in OD](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/created-ticket.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=2838a661a70ee9161b716efbc99e7eec)

**5. Clean up**

![Go to Vivenu transactions](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/transactions-vivenu.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=c0cacca3e67491838b0772bac0f16937)

Click your transaction (there should only be one).

![Transaction actions](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/transaction-actions.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=5eed6950ab3512c6d90681ad912c7e19)

Click **Cancel** to cancel the transaction.

![Cancel confirmation](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/cancel-confirmation.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=ae83f3754b9878abef293aea7b193f6c)

![Transaction cancelled](https://mintcdn.com/smedley_group/J4Qb1kGrTQEJOjVR/images/software/third-party/vivenu/hub-deployment/development/making-a-test-payment/check-refund.png?fit=max\&auto=format\&n=J4Qb1kGrTQEJOjVR\&q=85\&s=8f332e8a6a5c635d6d2ada6b4b68dc64)

Make sure the transaction is refunded and the ticket is no longer valid in the OD.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.