# How to Configure Stripe Payment Gateway in WordPress with Paymattic?

> Stripe is a globally recognized payment gateway that is completely free to integrate with Paymattic. It supports 135+ currencies! You can accept payment from any debit card and credit card using Stripe. Let

- URL: https://paymattic.com/docs/how-to-configure-stripe-payment-gateway-in-wordpress-with-paymattic/
- Markdown: https://paymattic.com/docs/how-to-configure-stripe-payment-gateway-in-wordpress-with-paymattic/index.md
- Modified: 2024-10-16

---

# How can we help you?

Popular Search subscriptionstriperecurringtheuser

View Categories

[Stripe](https://stripe.com/) is a globally recognized payment gateway that is completely free to integrate with [Paymattic](/). It supports 135+ currencies! You can accept payment from any debit card and credit card using Stripe. This article will guide you through **configuring** **Stripe** in your **WordPress** **Site** with the **Paymattic** plugin.

## Configuring Stripe Payment Method #

To learn how to configure the Stripe payment gateway through Paymattic, follow the steps with screenshots below –

First, go to **Payment Gatewa**y from the **Paymattic Navbar**, click the **Stripe** tab from the left sidebar, and the **Stripe Settings** page will open.

![](https://paymattic.com/wp-content/uploads/2022/06/Payment-Gateway-Stripe-1-scaled.webp)

Select any **Payment Mode** between **Test** (for test payments) and **Live**(for real payments) as both options follow the same configuration process, e.g., I choose the **Test Mode**.

Then, you need to obtain the**Public key** and **Secret key** from your **Stripe Account**.

![](https://paymattic.com/wp-content/uploads/2022/06/Payment-Mode-Public-key-Secret-key.webp)

#### Get the Publishable Key and Secret Key from Stripe #

To learn how to get **Publishable key** and **Secret Key** from your [Stripe](https://stripe.com/), follow the steps with screenshots below –

First, log in to your Stripe account from [here](https://dashboard.stripe.com/login). If you do not have an account, sign up from [here](https://dashboard.stripe.com/register?country=TH&__s=f2pfdywbotv32g8e99qw).

Once you log in to the**Stripe Dashboard**, go to the **Developers** section from the **Navbar**, and click the **API keys** tab.

![](https://paymattic.com/wp-content/uploads/2022/06/Developers-API-Key-scaled.webp)

Here, you will get both your **Publishable Key** and **Secret Key**for configuration. Copy them.

![](https://paymattic.com/wp-content/uploads/2022/06/Publishable-key-Secret-key-from-Stripe-account.webp)

Go back to **Payment Gatewa**y from the **Paymattic Navbar**, click the **Stripe**tab, and paste the copied **Publishable** **key**and**Secret key**into the **Public Key** and **Secret Key** fields respectively.

Finally, press the **Save Settings** button and your Stripe account will be integrated with Paymattic for your WordPress Site.

![](https://paymattic.com/wp-content/uploads/2022/06/Paste-the-public-and-secret-keys-in-Paymattic-scaled.webp)

### Company Name and Stripe Meta Data #

Once you configure Stripe, you can set up the company name and stripe metadata if needed.

- **Company Name**: Enter the **Business Name** here that you want to be displayed in the payment form during checkout.

- **Stripe Meta Data**: Check this box if you want to send form input data to Stripe as metadata i.e., you can choose what you want to show after a successful payment or payment failures.

**Remember**, always press the **Save Settings** button to save the changes you made in your Stripe Settings page.

![](https://paymattic.com/wp-content/uploads/2022/06/Company-Name-and-Stripe-Meta-Data.webp)

### Add Stripe Webhooks #

To learn how to configure the **Stripe Webhooks** to your WordPress Site, follow the steps with the screenshots below –

To ensure your Stripe dashboard and Paymattic dashboard are in sync, you must configure the Stripe Webhooks.

First, copy the**Webhook URL** and recommended **Webhook Events**forsmooth transactions based on **Stripe** **Data** related to **Subscription/Recurring/Hold** payments.

You will need them later to configure Stripe Webhooks to your WordPress Site.

![](https://paymattic.com/wp-content/uploads/2022/06/Copy-Webhook-URL-and-Events.webp)

Now, visit your [Stripe Dashboard](https://dashboard.stripe.com/test/dashboard), go to the **Developers** section from the **Navbar**, and click the **Webhooks**tab.

![](https://paymattic.com/wp-content/uploads/2022/06/Webhooks-from-Developers-section-scaled.webp)

Click the **+Create an endpoint**button.

![](https://paymattic.com/wp-content/uploads/2022/06/Create-an-endpoint-button-scaled.webp)

Now, choose the events recommended by Paymattic for Stripe to send to your endpoint.

You can findyour **desired events** by entering their **Name** or **Description**intothe**Events**fields and can **select** **events** by clicking the **checkbox**.

**The Events recommended by Paymattic are briefly explained below:**

- **charge.succeeded**: This triggers when a charge is successfully processed, basically this event occurs when a payment is completed on Stripe.

- **charge.captured**: This triggers when a previously authorized charge is successfully captured. You must use this for **Hold payments**.

- **invoice.payment_succeeded**: This triggers when a payment for an invoice is successful. This is often used for **Subscription** **payments**.

- **charge.refunded**: This triggers when a charge is refunded. This event helps track refund activity that happened on Stripe.

- **customer.subscription.deleted**: This triggers when a customer’s subscription is canceled or ends. This could be due to customer action, automatic cancellation, or a failed payment after retries.

- **Checkout.session.completed**: This triggers when a checkout session is successfully completed. This event confirms that the customer successfully paid for the session.

Once you select all the suggested**Webhook Events**, Click the **Continue** button.

![](https://paymattic.com/wp-content/uploads/2022/06/Select-events-to-send-scaled.webp)

Finally, paste the **Webhook URL** you copied from the **Stripe Settings** page into the **Endpoint URL** field and click the **Create destination** button.

And, the Stripe Webhooks will be configured with your WordPress Site!

![](https://paymattic.com/wp-content/uploads/2022/06/Endpoint-webhook-URL-scaled.webp)

## Add Stripe in Forms #

Once you finish setting up your **Stripe** payment gateway, you can easily add this payment method to any of your existing [Payment Form](/docs/how-to-create-your-first-payment-form-in-a-minute-and-accept-payments-with-paymattic/).

If you do not have any existing forms, read this [Create a Form from Scratch](/docs/how-to-create-a-form-from-scratch-with-paymattic/) or[Create a Form using Templates](/docs/simple-form-templates/) documentation to create one.

To learn the detailed process of adding a payment method to an existing form, read this [Documentation](/docs/how-to-use-the-payment-method-fields-section/).

But, remember, the added**Stripe**payment method in your **Form** will not function unless you complete the configuration process properly.

## Form Specific Stripe Settings #

To learn how to customize the Settings of Stripe payment method for a specific form, refer to the article below –

[Form Specific Payment Settings](/docs/customize-form-specific-payment-settings/#1-toc-title)

If you have any further questions, concerns, or suggestions, please do not hesitate to contact our [@support team](https://wpmanageninja.com/support-tickets/?utm_source=wpmn&utm_medium=home&utm_campaign=site#/). Thank you.

##### What are your Feelings

#### Share This Article :

- [![Facebook](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/facebook.svg?v=4.8.1)](https://www.facebook.com/sharer/sharer.php?u=https://paymattic.com/docs/how-to-configure-stripe-payment-gateway-in-wordpress-with-paymattic/)
- [![X](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/twitter.svg?v=4.8.1)](https://twitter.com/intent/tweet?url=https://paymattic.com/docs/how-to-configure-stripe-payment-gateway-in-wordpress-with-paymattic/)
- [![LinkedIn](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/linkedin.svg?v=4.8.1)](https://www.linkedin.com/shareArticle?mini=true&url=https://paymattic.com/docs/how-to-configure-stripe-payment-gateway-in-wordpress-with-paymattic/)
- [![Pinterest](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/pinterest.svg?v=4.8.1)](https://pinterest.com/pin/create/button/?url=https://paymattic.com/docs/how-to-configure-stripe-payment-gateway-in-wordpress-with-paymattic/)

Still stuck? How can we help? 

## How can we help?

Updated on October 16, 2024

[How to Configure Billplz in WordPress with Paymattic?](/docs/how-to-configure-billplz-in-wordpress-with-paymattic/)[How to Configure PayPal in WordPress with Paymattic?](/docs/how-to-configure-paypal-in-wordpress-with-paymattic/)

Powered by [BetterDocs](https://betterdocs.co)
