Stripe is a powerful payment infrastructure that’s secure, easy to configure, and easy to use. To start using Stripe with My Tickets, you’ll first need to set up an account with Stripe, then obtain your Stripe API keys for set up inside My Tickets.

Stripe Settings in My Tickets

API fields for My Tickets: Stripe.
Stripe gateway settings: API keys and modes.

Using Test Mode

Stripe offers two modes: production and test. In test mode, no transactions will actually be charged. You will be able to see the results of test purchase in your Stripe test data.

To view testing data and obtain your test API keys, switch the Stripe dashboard into test mode.

Location of test mode toggle in upper right corner of the Stripe dashboard

User Gateway Selection

The field ‘Gateway Selector label’ will change how a front-end purchaser selects the gateway. By default, it will say ‘Stripe’, but you can use this field to change it to ‘Credit Card’ or any other desirable term.

Configuring Webhooks

Stripe webhooks are required in order for Stripe to send payment completion information back to your website or to process refunds.

My Tickets can configure webhooks for you automatically. When you first save your API keys, My Tickets will attempt to contact Stripe and set up an API key for your site.

The API key created will be tied to the URL of the site you’re on. If you move your site to a new domain (such as from a development to a production environment), then you’ll need to create a new webhook. You can generate a new webhook by checking the box “Update Webhooks” under the API key fields.

Webhooks must point to your current domain and be on an https connection in order to work in production. Test mode will function without SSL.

Manually Configured Webhooks

If the query to configure webhooks fails, you will need to set up your webhook manually. Go to your Stripe dashboard to locate the Developers panel. There are several ways to navigate to this information; the easiest options are to use the Search feature or the footer developer tray.

In the search feature, query the term ‘webhook’ and select the option ‘Create a webhook’. This will take you directly to the interface for creating a webhook.

The developer tray can be found at the bottom of the page, and is triggered by a button with the name ‘Developers’, found in the bottom left corner of the screen.

This will open an interface with a set of controls; choose ‘Webhooks’. You can then choose the button ‘Add destination’ to create a new webhook.

Your webhook should be tied to your account; can use most API versions, and can be left to listen to all events.Irrelevant events will be ignored.