Headless Payments
A free and open-source plugin I built that exposes WooCommerce payment functionality for headless setups. Built for scalability, extensibility and frontend-agnostic use.
by Keaton Murray · github.com/keatonmurray/headless-payments
★ 5stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/keatonmurray/headless-payments/archive/refs/heads/main.zipFrom the readme
🧩 Headless Payments
Headless Payments is a free and open-source Wordpress plugin for handling payment flow via REST API designed to extend your custom checkout functionality in a headless CMS architecture.
Currently supporting PayPal and Stripe, this plugin offers customizable gateway settings and a frontend-agnostic design — making it ideal for JAMstack-style setups that use WordPress as a headless CMS.
Headless Payments leverages a clean and scalable OOP structure allowing you to customize your backend logic according to your requirements.
One of the pain points in a headless CMS architecture is being limited from Woocommerce's core functionality. We strive to make payment integration less of a hassle allowing you to focus on things that matter the most.
✨ Features
- ✅ PayPal & Stripe integration (Sandbox + Live)
- ⚙️ Admin settings page with configurable credentials
- 🔘 Toggle gateways on/off via UI
- 🔌 Custom REST API endpoints for:
- Creating PayPal orders
- Capturing payments after approval
- Creating Stripe payment intents
- 📦 Modular OOP structure (cleanly namespaced)
- 🔧 Ready for extension: Stripe, Square, etc.
- 💻 React/Vite compatible (but backend-agnost