Stripe
Connect Stripe to PayLexer to accept cards, digital wallets, bank transfers, and more across 135+ currencies in 46+ countries.
Stripe is a US-based global payment processor operating in 46 countries, with strong coverage across Europe and North America. It supports cards, digital wallets, bank transfers, subscriptions, and advanced billing workflows, enabling businesses to accept payments from customers in 195+ countries worldwide.
-
Supported Regions (Merchant Accounts): United States, Canada, Europe, UK, Australia, Singapore, Japan, and 30+ other countries - view full list
-
Supported Currencies: 135+ currencies including USD, EUR, GBP, CAD, AUD, JPY, SGD, and more - view full list
Supported Features
-
One-time payments
-
Refunds
-
Real-time payment status updates
-
Recurring billing and subscriptions (if enabled)
-
Multiple payment methods (cards, Apple Pay, Google Pay, bank transfers)
-
Advanced fraud detection
Before You Start
Make sure you have:
-
Stripe Account – Don't have one? Sign up for Stripe →
-
PayLexer Account – Required to configure the integration. Create your account →
-
A website where you want to integrate
Looking for a different payment processor? View all supported gateways →
Configuring Stripe
You need a Publishable Key and Secret Key from Stripe for this integration.
Getting API Credentials
Log in to Stripe
Log in to your Stripe Dashboard.
Locate API Keys
From the Dashboard home, find the API Keys section.
Copy your keys
Copy your Publishable key and Secret key.
Stripe provides separate keys for Test and Live modes. Toggle between "Test mode" and "Live mode" in the dashboard to access different keys.

Adding Credentials to PayLexer
Open PayLexer Dashboard
Log in to your PayLexer dashboard and navigate to Payment Gateways → Stripe.
Enter your credentials
Paste the credentials you copied from Stripe.

Understanding Live/Production and Sandbox Settings:
| Environment | Purpose |
|---|---|
| Live / Production (Mandatory) | Used for real transactions. Cannot be empty, even when testing. |
| Test / Sandbox (Optional) | Used for testing only. No real money is processed. |
How PayLexer selects credentials:
-
Debug/Test mode ON → Test credentials are used
-
Debug/Test mode OFF → Live credentials are used
Test and save
Click Test Connection to verify your credentials, then click Save Configuration.
Configuring Webhooks (Mandatory)
Webhooks enable real-time payment updates and significantly improve reliability.
Benefits of Webhooks:
-
Instant payment status updates
-
Automatic refund processing
-
Dispute notifications
Open Stripe Webhooks
Log in to your Stripe dashboard, go to Developers → Webhooks, and click Add destinations.

Select events
Select the events you want to listen to and click Continue.

Choose Webhook endpoint
Select Webhook endpoint and click Continue.

Add the Webhook URL
Enter a Destination name, then copy the Webhook URL from PayLexer and paste it into the Endpoint URL field. Click Continue.

Copy Webhook Secret
Copy the Webhook Secret generated by Stripe.

Save in PayLexer
Paste the Webhook Secret into PayLexer, then click Save Configuration.

Integrate Stripe to Your Website
If you have already added and configured your site, you can enable Stripe in your existing setup.
Go to Websites
Navigate to Websites in your PayLexer dashboard.
Edit your website
Click the Edit Icon of your added website.

Enable Stripe
Click the checkbox to enable Stripe for the website.

If you haven't added a website yet, Continue to Add Your Website →
Troubleshooting
-
Verify Publishable Key and Secret Key are correct
-
Ensure you're using the right environment keys (Test vs Live)
-
Re-run Test Connection in PayLexer
-
Confirm webhook endpoint is created in Stripe
-
Check Webhook Secret matches exactly
-
Verify events are selected in webhook configuration
-
Review webhook delivery logs in Stripe Dashboard → Developers → Webhooks
-
Verify Stripe is enabled in your integration
-
Ensure credentials match the environment (Test vs Live)
Best Practices
-
Test in sandbox before enabling Production mode
-
Validate the first live transaction after switching
-
Confirm webhooks are working
-
Monitor the gateway dashboard for failed payments
-
Keep API keys and secrets secure
-
Use separate Test and Production credentials
-
Enable Stripe Radar for fraud detection
-
Use only official Stripe test cards during testing
FAQs
Live credentials are mandatory to save the configuration. Test credentials are optional but highly recommended so you can safely test payments before going live.
Check the Debug Mode setting in your platform (e.g., WP Travel Engine Settings → Payments). When Debug Mode is ON, PayLexer uses your Test credentials. When OFF, it uses Live credentials.
Transactions appear in three places: your platform's booking/order pages, PayLexer Dashboard → Orders, and Stripe Dashboard. All three show the same transactions with different IDs.
Payments will still process, but status updates may be delayed. Check webhook logs in Stripe Dashboard → Developers → Webhooks to troubleshoot.
Still Have Questions?
-
Stripe Support: Stripe Help Center
-
PayLexer Support: Contact Support
Last updated Apr 3, 2026
Built with Documentation.AI