Payments & Billing5 min read

    Paystack Integration

    Connect Paystack to Jasiyo to accept M-Pesa STK Push without a dedicated Paybill โ€” good for ISPs just getting started with automated payments.

    When to use Paystack

    Use Paystack if you don't yet have a Safaricom Paybill or bank Paybill. Paystack provides M-Pesa STK Push via their own infrastructure โ€” customers pay to Paystack's numbers rather than your dedicated Paybill.

    This is a good option for ISPs just getting started who want to automate payments immediately without waiting for a Paybill to be set up. Once you have your own Paybill, you can switch to the Daraja integration.

    Paystack charges transaction fees on each payment. Check Paystack's current pricing at paystack.com before setting this up.

    Setup in Jasiyo

    1

    Create a Paystack account

    Sign up at paystack.com and complete business verification to enable M-Pesa payments on your account.

    2

    Get your API keys

    In your Paystack dashboard, go to Settings โ†’ API Keys & Webhooks. Copy your Public Key and Secret Key. Use the Live keys, not Test keys, for production.

    3

    Go to Payments in Jasiyo

    Click Payments in your ISP dashboard sidebar.

    4

    Click Connect Paystack

    Find the Paystack card and click Connect. Paste your Public Key and Secret Key.

    5

    Set account reference

    Set a short account reference label that will appear on customer M-Pesa prompts (e.g. your business name).

    6

    Save

    Click Save. Jasiyo automatically configures the Paystack webhook โ€” no manual webhook setup needed in your Paystack dashboard.

    Payment flow

    1. 1Jasiyo sends an STK Push request to Paystack with the customer's phone number and amount
    2. 2Paystack sends the M-Pesa payment prompt to the customer's phone
    3. 3Customer enters their M-Pesa PIN and approves
    4. 4Paystack notifies Jasiyo via webhook
    5. 5Jasiyo matches the payment to the customer and renews their subscription
    6. 6Router re-enable command is queued โ€” customer is back online within 30 seconds
    With Paystack, payments are only triggered via STK Push initiated from Jasiyo. Customers cannot walk to an M-Pesa agent and pay independently like they can with a dedicated Paybill.

    Limitations vs Daraja

    FeaturePaystackDaraja (own Paybill)
    C2B (customer pays independently)โŒ Not supportedโœ… Supported
    STK Pushโœ… Supportedโœ… Supported
    Transaction feesPaystack rates applySafaricom rates apply
    Requires a PaybillโŒ Noโœ… Yes
    Customer pays to own PaybillโŒ Pays to Paystack numbersโœ… Pays to your Paybill
    Setup complexityLow โ€” just API keysMedium โ€” Daraja registration required