Kroxt BaaS provides a built-in payment engine designed to accept checkout payments, manage recurring subscription plans, track customer subscriptions, and process verified webhooks automatically inside your database.
Paystack is supported out-of-the-box with dedicated Plan sync, HMAC SHA-512 signature validation, and subscription management. Support for Stripe and Flutterwave utilizes the exact same SDK API contracts (baas.payment.*).
Access the payment module using baas.payment on your Kroxt client instance:
import Kroxt from "@kroxt/baas-sdk";
const baas = new Kroxt({
projectId: "YOUR_PROJECT_ID",
apiKey: "YOUR_API_KEY",
});
// All payment methods are available on baas.payment
// baas.payment.initializeTransaction(...)
// baas.payment.verifyTransaction(...)
// baas.payment.createPlan(...)
// baas.payment.cancelSubscription(...)Navigate to Console > Payments > Gateway Settings to enable payments and configure your credentials:
pk_test_... or pk_live_...)sk_test_... or sk_live_...) used to sign API requestshttps://api.kroxt.com/payment/webhooks/YOUR_PROJECT_ID/paystack into Paystack Dashboard