Bridge API DocsBridge API Docs
Bridge API Docs
Api reference

Make Payment

Process payments through multiple channels - mobile money, cards, deposits, and payouts

Make Payment

The Bridge API provides a unified payment endpoint that supports multiple transaction types. Choose the payment method that best fits your use case.

Payment Types

Quick Reference

Payment TypeTransaction TypeNetworkUse Case
Mobile MoneyCTMMTN, VOD, AIRCollect payments from customers
Card PaymentCTMCRDSecure card payments with redirect
Deposit WalletDTTWMTN, VOD, AIRFund your wallet for payouts
PayoutMTCMTN, VOD, AIRSend money to customers

Common Parameters

All payment types share these common parameters:

ParameterTypeRequiredDescription
service_idintegerYesYour service identifier
referencestringYesTransaction reference/description
transaction_idstringYesUnique transaction identifier
amountnumberYesTransaction amount
callback_urlstringYesURL to receive payment notifications
request_timestringYesRequest timestamp

Endpoint

POST https://api.bridgeagw.com/make_payment

Request Headers

Authorization: Basic <base64_encoded_credentials>
Content-Type: application/json

Response Format

All payment types return a consistent response format:

Success Response

{
  "response_message": "Request successfully received for processing",
  "response_code": "202"
}

Card Payment Success (with redirect)

{
  "response_message": "Successful",
  "response_code": "000",
  "redirect_url": "https://cardspaymentpage.com/en/payment/123456789"
}

Error Response

{
  "response_message": "You are not allowed to use this service",
  "response_code": "100"
}

Getting Started

  1. Choose Your Payment Type: Select the payment method that fits your use case
  2. Review Documentation: Read the specific documentation for your chosen payment type
  3. Implement Integration: Use the provided code examples to integrate
  4. Test Thoroughly: Test with small amounts before going live
  5. Handle Callbacks: Implement webhook handling for payment notifications

Best Practices

  • Use Appropriate Transaction Types: Choose the right trans_type for your use case
  • Validate Inputs: Always validate amounts and phone numbers before sending
  • Handle Errors: Implement comprehensive error handling
  • Monitor Transactions: Use callbacks to track payment status
  • Test First: Always test with small amounts in sandbox mode

Support

Need help choosing the right payment type? Contact our support team at support@thebridgesolutions.com or check our detailed documentation for each payment method.