GuidesAPI Reference
Changelog
GuidesAPI Reference
Changelog
  1. Payments
  • Overview
  • Payments
    • Overview
    • Get Payment
      GET
    • Get Payments
      GET
    • Create PayLink
      POST
    • Charge
      POST
    • Payment Initialize
      POST
    • Initialize Crypto Payment
      POST
    • Initialize Card Payment
      POST
  • Payouts
    • Overview
    • Transfer Recipient
      • Create Transfer Recipient
      • Get Transfer Recipients
      • Get Transfer Recipient
    • Transfers
      • Create Transfer
      • Get Transfers
      • Get Transfer
      • Get Transfer By Reference
    • Banks
      GET
    • Account Resolve
      GET
  • Reserved Account
    • Overview
    • Get Reserved Accounts
      GET
    • Get Reserved Account By Reference
      GET
    • Get Reserved Account
      GET
    • Update Reserved Account
      PUT
    • Delete Reserved Account
      DELETE
    • Create Reserved Account
      POST
  1. Payments

Initialize Card Payment

Developing
POST
https://devapi.collect.africa/payments/card/initialize
Last modified:2025-04-19 09:55:32

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "reference": "order_12345",
    "currency": "USD",
    "amount": 100.5,
    "callback_url": "https://example.com/callback",
    "card": {
        "number": "4111111111111111",
        "security_code": "123",
        "expiry": {
            "month": "12",
            "year": "2025"
        }
    },
    "customer": {
        "first_name": "John",
        "last_name": "Doe",
        "email": "john.doe@example.com",
        "phone_number": "+1234567890"
    },
    "billing": {
        "city": "Lagos",
        "state": "Lagos State",
        "country": "Nigeria",
        "zip_code": "100001",
        "address1": "1234 Elm Street",
        "address2": "Apt 567"
    },
    "shipping": {
        "city": "Lagos",
        "state": "Lagos State",
        "country": "Nigeria",
        "zip_code": "100001",
        "address1": "1234 Elm Street",
        "address2": "Apt 567"
    },
    "auth_method": "3ds",
    "metadata": {}
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://devapi.collect.africa/payments/card/initialize' \
--header 'Content-Type: application/json' \
--data-raw '{
    "reference": "order_12345",
    "currency": "USD",
    "amount": 100.5,
    "callback_url": "https://example.com/callback",
    "card": {
        "number": "4111111111111111",
        "security_code": "123",
        "expiry": {
            "month": "12",
            "year": "2025"
        }
    },
    "customer": {
        "first_name": "John",
        "last_name": "Doe",
        "email": "john.doe@example.com",
        "phone_number": "+1234567890"
    },
    "billing": {
        "city": "Lagos",
        "state": "Lagos State",
        "country": "Nigeria",
        "zip_code": "100001",
        "address1": "1234 Elm Street",
        "address2": "Apt 567"
    },
    "shipping": {
        "city": "Lagos",
        "state": "Lagos State",
        "country": "Nigeria",
        "zip_code": "100001",
        "address1": "1234 Elm Street",
        "address2": "Apt 567"
    },
    "auth_method": "3ds",
    "metadata": {}
}'

Responses

🟢200OK
application/json
Card Payment Initialized
Body

Example
{
    "message": "string",
    "data": {
        "status": "string",
        "reference": "string",
        "next_action": {
            "type": "html",
            "value": "string"
        },
        "message": "string"
    }
}
🟢201Created
Modified at 2025-04-19 09:55:32
Previous
Initialize Crypto Payment
Next
Overview
Built with