Custom Integrations — Bring Your Own Compute
The full-control path to a Custom Integration: run your own code, on your own infrastructure, and drive Galactic Core from the outside over the public API and webhooks. Nothing to register.Extensions cover the common cases — reacting to a store event, or becoming the provider Galactic Core calls for payments, shipping, tax, email, SMS, marketing, or a sales channel — with the plumbing handled for you (registered, signed, retried, revalidated, run-logged) and your secrets still able to stay entirely on your side. This page is the remainder: free-form orchestration outside those seams.
The pattern
Galactic Core is the system of record — orders, inventory, accounting, customers. Your service does the provider-specific work and tells Galactic Core the result over the API. A custom payment provider (any provider beyond the built-in Stripe, PayPal, Paystack, and M-Pesa) follows the shape in three steps:- Create the order as
pendingin Galactic Core to get a permanentorder_id. - Charge through your provider from your own function, tagging the transaction with that
order_id. - On your provider’s webhook, verify it and
PATCHthe order topaid.
paid / failed status; it never sees your provider’s keys.
ShippingProvider remote extension instead.)
Order fields you set
Properties of this pattern
- It runs anywhere — any serverless platform (Vercel, Netlify, Deno Deploy, AWS Lambda) or your own server.
- Provider secrets stay on your side — they never touch Galactic Core or your storefront.
- The payment result is only as trustworthy as its source — a provider webhook whose signature has not been verified is unauthenticated input.
- An
Idempotency-Keyon the update is what keeps a retried webhook from double-posting accounting.
initialize / webhook / verify function skeleton, with templates for common providers.

