Connect Stripe to WPMarmite Pay

Home » Docs » Getting started » Connect Stripe to WPMarmite Pay

Published on

To connect Stripe to WPMarmite Pay, you need to follow 2 steps:

  1. Add Stripe API keys (test and production) ;
  2. Create a webhook and save your secret key.

You can then use Stripe products in WPMarmite Pay.

Add the API keys

To retrieve your API keys, click on these links:

Now go to WordPress, then click on the “WPMarmite Pay” menu.

Copy/paste your Stripe keys into the appropriate fields:

  • Stripe Test Secret API Key > Secret API Key
  • Stripe Live Secret API Key > Secret API test key
Adding Stripe API keys to WPMarmite Pay

Add the webhook

Next, add the webhook available on this page to the “Stripe Webhook Secret” field: https://dashboard.stripe.com/webhooks

To do this, click on the Add endpoint button. You will be taken to the following page:

Add an endpoint in Stripe.

In the URL field, enter the URL from the WPMarmite Pay settings (below the Save Changes button):

Webhook URL

Then, select the following events:

  1. checkout.session.completed
  2. customer.subscription.created
  3. customer.subscription.updated

Then click on Add endpoint.

Return to the webhooks page: https://dashboard.stripe.com/webhooks

Click on the newly created webhook, then on the Reveal link under Signing secret.

Copy the key and paste it into the WPMarmite Pay settings, then save the settings.

Congratulations, you’ve successfully configured WPMarmite Pay!

The documentation is still fresh. Do you need further guidance or have any questions? Contact us and we’ll take care of it.