Directory / plugin
Devtonic Payment Gateway for Lemon Squeezy
v1.0.2 · by Hamza Afridi
Accept Lemon Squeezy payments at your WooCommerce checkout. A real payment gateway with automatic order updates and one-click webhook setup.
About this plugin
This plugin adds Lemon Squeezy as a payment method at your WooCommerce checkout. Customers pick Lemon Squeezy, pay on the secure Lemon Squeezy hosted checkout, and come back to your store. The WooCommerce order is updated automatically by webhook. No copying orders between two dashboards.
If your shop runs on WooCommerce and you want Lemon Squeezy to process the payments, this plugin is the bridge between the two.
Because Lemon Squeezy is a merchant of record, it handles sales tax, VAT, and global payment compliance on its side. You sell from your own WooCommerce store, Lemon Squeezy takes care of the tax paperwork.
I built this plugin because I needed it for my own store. I process my own payments through it every day. If it breaks, I feel it first.
Here is the whole thing working, from the checkout to the order being marked paid:
What the free version does
- Adds Lemon Squeezy as a real WooCommerce payment gateway (redirect checkout)
- Marks WooCommerce orders paid automatically when the payment goes through
- Payment links stay open for 7 days, so Lemon Squeezy’s cart reminder emails bring buyers back to their order
- Syncs refunds made in Lemon Squeezy back to the WooCommerce order
- One-click webhook setup: the plugin registers the webhook on Lemon Squeezy for you
- Every webhook request is verified with an HMAC-SHA256 signature before anything is processed
- Test mode so you can try the whole flow with test cards before going live
- Works with classic checkout and block checkout
- Compatible with WooCommerce High-Performance Order Storage (HPOS)
- Works with simple and variable products, with a Lemon Squeezy variant ID on the product and on each variation
Pro version
Everything in the free plugin keeps working forever. The Pro version adds what bigger stores need:
- Subscriptions: renewals, pauses, cancellations and expiry synced to the WooCommerce order from Lemon Squeezy’s 10 subscription events, no separate subscriptions plugin required (it also works with WooCommerce Subscriptions)
- Orders with several items: every item with its price on Lemon Squeezy’s receipt email, and an option to show your store logo at checkout instead of one product’s picture
- Skip the Checkout Page: for digital products, buyers go from the cart straight to Lemon Squeezy
- License keys delivered onto the WooCommerce order and order emails automatically
- Overlay checkout: customers pay in a popup without leaving your site
- Refunds processed straight from the WooCommerce order screen
- One-click product sync with a variant dropdown on every product
- Moving up from this free plugin: Pro brings your settings and product links over by itself, and orders already sent to Lemon Squeezy are still marked paid
Requirements
- WooCommerce 6.0 or newer
- PHP 7.4 or newer
- An SSL certificate (HTTPS), required for webhooks
- A free Lemon Squeezy account with at least one product
External services
This plugin connects to the Lemon Squeezy API to process payments. It is not possible to use the plugin without this connection.
- When a customer checks out, the plugin sends the order total, order number, the customer’s billing email, name, and billing country, state, and postcode to api.lemonsqueezy.com to create the checkout session. The customer is then redirected to a checkout page hosted by Lemon Squeezy.
- When you click “Register Webhook” or “Test Connection” in the admin, the plugin calls api.lemonsqueezy.com with your API key.
- Lemon Squeezy sends webhook notifications back to your site when orders are created or refunded.
This service is provided by Lemon Squeezy LLC: terms of service, privacy policy.