Afriquia Card
3.7 Declare an Afriquia card
This endpoint declares (saves) an Afriquia/Smart card
POST /api/v1/payments/declare
Request Parameters:
| Parameter | Type | Description |
|---|---|---|
cc_card_number | string | card number |
cc_cardholder_name | string | card holder name |
cc_expiry_date_month | string | year and month must be greater than current date / |
cc_expiry_date_year | string | year and date must be greater than current date |
cc_cvv | string | Card Verification Value |
mobile_number | string | Mobile number |
type | string | afriquia_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:
| Parameter | Type | Description |
|---|---|---|
uuid | string | uuid 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:
| Parameter | Type | Description |
|---|---|---|
code | string | mobile number verification code |
Sample Request:
{
"code": "1234"
}
Response Parameters:
| Parameter | Type | Description |
|---|---|---|
code | string | the code from request payload |
Sample Response:
{
"code": "1234"
}