Skip to main content

Afriquia Card

3.7 Declare an Afriquia card

This endpoint declares (saves) an Afriquia/Smart card

POST /api/v1/payments/declare

Request Parameters:

ParameterTypeDescription
cc_card_numberstringcard number
cc_cardholder_namestringcard holder name
cc_expiry_date_monthstringyear and month must be greater than current date /
cc_expiry_date_yearstringyear and date must be greater than current date
cc_cvvstringCard Verification Value
mobile_numberstringMobile number
typestringafriquia_card or smart_card

Sample Request:

{
"cc_card_number": "306553501914",
"cc_cardholder_name": "name",
"cc_expiry_date_month": "12",
"cc_expiry_date_year": "2020",
"cc_cvv": "023",
"type": "smart_card/afriquia_card",
"mobile_number": "+212600000000"
}

Response Parameters:

ParameterTypeDescription
uuidstringuuid of payment method (Afriquia card)

Sample Response:

{
"uuid": "6842310a-8e80-4138-8ec3-f59905019053"
}

3.8 Verify an Afriquia card

This endpoint verifies an Afriquia card using a code to be approved by CMI.

PATCH /api/v1/payments/<payment_method_uuid>/verify

Request Parameters:

ParameterTypeDescription
codestringmobile number verification code

Sample Request:

{
"code": "1234"
}

Response Parameters:

ParameterTypeDescription
codestringthe code from request payload

Sample Response:

{
"code": "1234"
}