Authorization: Bearer ********************
{
"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": {}
}
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": {}
}'
{
"message": "string",
"data": {
"status": "string",
"reference": "string",
"next_action": {
"type": "html",
"value": "string"
},
"message": "string"
}
}