Setup Stripe
Your COMET Payments Module or COMET Play Store can be integrated with Stripe in a quick, easy setup that lets you start trading straight away. Stripe's payment interface is a gateway solution that accepts payments in multiple currencies and supports all major credit and debit cards.
To integrate Stripe payments with COMET or COMET Play, you need several keys obtained from the Stripe Merchant dashboard.
Before proceeding with the following instructions, make sure you have an active and valid Stripe Merchant Profile, i.e., that the Stripe Merchant creation process is complete.
Three Stripe keys are required for complete integration:
Please note that all three keys are accessible from the same page, i.e., the home screen of your Stripe account.
To integrate Stripe with COMET, open your Stripe dashboard → select the Developers menu tab.

The Publishable Key and The Secret Key
To access the Publishable Key and the Secret Key, select the API keys submenu on the left nav bar.

The Publishable Key will be displayed.
Copy and paste the Publishable Key into the appropriate input field on the COMET/COMET Play Stripe integration form.

On the same submenu, The Secret Key will be displayed blurred
Hit the Reveal key button
Your option ‘Reveal test key’ might have a different name due to production/developer/test stripe account discrepancies. The placement remains the same.
Please take into account that you might be prompted to enter your password
Copy and paste The Secret Key into the appropriate input field on the COMET/ COMET Play Stripe integration form (shown in the previous figure)

Webhook Signature Key
Once you have pasted the Publishable Key and the Secret Key, select the Webhooks submenu on the left nav bar (highlighted in the figure below)

The Webhooks Page will be displayed.
Hit the Add an endpoint button.

You will be prompted to enter the Endpoint URL and select Events to listen to
First, copy the Stripe Endpoint URL field from the COMET/ COMET Play Stripe integration form.
Paste the URL value in the Stripe Endpoint URL
Hit the Add an endpoint button
Select the Events to listen to:
A list of available events will be displayed → Please take into account that we only need two events
Filter the events by typing ‘charge’ in the search bar and then select ‘charge.captured’, ‘charge.succeeded'
Hit the Add Events button

You will be returned to the previous screen with the filled form details
Hit the Add an endpoint button

You’ve now created the necessary webhook.
Only a couple more steps remain to connect it with COMET/ COMET Play:
On the same Webhook page, hit the Reveal button
Copy your Webhook signature and paste it into the appropriate input field on the COMET/ COMET Play Stripe integration form


Testing
Your Stripe integration input field should now look something like the following figure:

Proceed and test your integration with Stripe by hitting the Test connection button.
Please note that we can only verify the validity of the Publishable and Secret keys you’ve entered. We cannot verify your Webhook signature, so double-check that you’ve copied and pasted the value correctly.
Inspect all the entered information.
Hit the Save button

Upon completion, you will be greeted with a ‘Connection successful!’ message if the information entered was valid.


