EllyPay Gateway API
  • Introduction
  • Getting Started
    • Registration
    • Error Handling
    • Authentication
    • Merchant Account Credentials
      • Generate Secret Key
      • Regenerate Security Keys
    • Supported Countries
    • Transaction Limits
    • Sandbox Test Accounts
    • RSA Public Keys
  • Utility Functions
    • Balance Inquiry
    • Payment Options
    • Payout Bank Codes
    • Transaction Status Verification
    • Handling Notifications/Callbacks
      • Callback Events
  • Funds Collection
    • Getting Started
    • Mobile Money Collection
  • Funds Payout
    • Getting Started
    • Mobile Money Payouts
    • Bank Account Transfers
  • Service Payments
    • Getting Started
    • Services List
    • Service Packages List
    • Service Choices List
    • Account Validation
    • Payment Confirmation
  • Callbacks
    • HMAC Signature Verification
    • RSA Signature Verification
  • Knowledge Base
    • Availing Payout Funds
    • Availing Service Payment Funds
    • Funds Settlement
    • Cross Currency Transactions
Powered by GitBook
On this page
  • Collections
  • Invoices (Generation and Payment)
  • Payouts/Disbursements
  • Service Payments
  1. Utility Functions
  2. Handling Notifications/Callbacks

Callback Events

Every callback payload has a parameter named event and its purpose is to communicate the reason for the callback. The section below describes the various values the parameter can take.

Depending on the workflow (collection, invoice generation/payment, disbursement, service payment etc) being used, the gateway will send appropriate events to the appropriate callback URLs. For every workflow type, the applicable events are described below;

Collections

Event
Transaction Status
Description

request.failed

FAILED

Request failed and could not be processed by the gateway. Failure reason is part of the callback payload

transaction.charges

PENDING

Communicates success of the first collection leg (initialization) and the charges to be levied. The collection confirmation request should be sent after this event is received

transaction.processing

PROCESSING

Notifies the merchant that transaction processing is ongoing. Returns mobile money instructions (when payment method is MOBILE_MONEY) or the card payment URL (when payment method is CARD)

transaction.failed

FAILED

The gateway tried to process the transaction but failed e.g. insufficient balance on the account. Failure reason is part of the callback payload

transaction.completed

COMPLETED

The gateway processed the collection successfully.

Invoices (Generation and Payment)

Event
Description

request.failed

Request failed and could not be processed by the gateway. Failure reason is part of the callback payload

invoice.generated

Event sent at successful generation of the invoice. Details of the invoice would be shared as part of the payload

invoice.paid

Event sent when the invoice is paid for. Part of the payload is the reference for the collection that fulfilled the invoice

Payouts/Disbursements

Event
Transaction Status
Description

request.failed

FAILED

Request failed and could not be processed by the gateway. Failure reason is part of the callback payload

transaction.failed

FAILED

The gateway tried to process the transaction but failed. Failure reason is part of the callback payload

transaction.completed

COMPLETED

The gateway processed the payout successfully.

Service Payments

Event
Transaction Status
Description

payment.failed

FAILED

The gateway tried to process the service payment but failed. Failure reason is part of the callback payload

payment.completed

COMPLETED

The gateway processed the service payment successfully.

PreviousHandling Notifications/CallbacksNextGetting Started

Last updated 8 months ago