Skip to content

Module 01 · Lesson 01

The payment flow

Six steps, and the one rule: the server decides.

How it works6 min
  1. 1

    Customer taps Pay. Your app asks your server to start a payment for an order.

  2. 2

    Server initializes. Your server calculates the amount itself and calls Paystack with the secret key.

  3. 3

    Checkout. The customer is sent to Paystack's checkout, picks Mobile Money, and approves the prompt on their phone.

  4. 4

    Return. Paystack sends the customer back to your callback URL with a reference.

  5. 5

    Verify. Your server asks Paystack if that reference succeeded, for the right amount and currency.

  6. 6

    Fulfil. Only now mark the order paid. A webhook confirms it too, in case the customer closed the page.