Skip to content

Powered by Grav CMS + Helios Theme

Extending KahunaCart

The provider contract, building a payment provider plugin, your own admin screen, and the REST API, event, Twig, shortcode and signed-link references.

KahunaCart Provider Contract

The public specification a payment provider plugin implements, with every method, type, and guarantee.

Writing a KahunaCart Payment Provider

Build a payment provider plugin step by step, then the other contracts an add-on can implement: rule operations, carrier rates, tax engines, schema extensions, hooks and alerts.

Admin sections

How a provider plugin adds its own screen to the KahunaCart admin as a web component.

REST API

How to call the KahunaCart admin API, and where every endpoint is documented.

Events

Every KahunaCart event a plugin can fire or listen to, with its payload, plus the order APIs a listener calls.

Twig functions and filters

Every Twig function and filter KahunaCart registers, with its signature and what it returns.

Shortcodes

Six storefront blocks — a product grid, a buy button, a gallery — written straight into a page's Markdown, with no Twig in content and no theme change.

Signed links and rate limits

The PHP APIs behind KahunaCart order links, rate-limit buckets and the client address, for add-on and theme developers.

Extension zones

The named places in the admin and on the storefront where an add-on can draw a widget, and how a merchant reorders them.

Storefront JSON API

The public JSON endpoints for cart, shipping quotes, payment methods, checkout and countries, for a headless storefront.

Outbound webhooks

Subscriptions that tell another system when something happens here: topics, signing, retries, auto-disable and the delivery log.

Translating KahunaCart

Give the plugin its own words in a second language: how a pack loads, the key namespaces, testing it, and submitting it.