# Payment

{% tabs %}
{% tab title="cURL" %}

```json
curl --location 'https://seerbitapi.com/api/v2/payments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTED_KEY' \
--data-raw '{
    "publicKey": "YOUR_PUBLIC_KEY",
    "amount": "500",
    "currency": "NGN",
    "country": "NG",
    "paymentReference": "payment_reference",
    "email": "ts@emaildomain.com",
    "fullName": "Halil TS",
     "tokenize": "false",
    "callbackUrl": "https://seerbit.com"
}'
```

{% endtab %}
{% endtabs %}

<mark style="color:green;">`POST`</mark> `https://seerbitapi.com/api/v2/payments`

#### Request Body

| Name                                               | Type   | Description                                                                   |
| -------------------------------------------------- | ------ | ----------------------------------------------------------------------------- |
| publicKey<mark style="color:red;">\*</mark>        | String | This is the merchant public key.                                              |
| amount<mark style="color:red;">\*</mark>           | String | This is the amount to be paid.                                                |
| email<mark style="color:red;">\*</mark>            | String | This is the email of the customer.                                            |
| country<mark style="color:red;">\*</mark>          | String | This is the country from which the transaction is been carried out from       |
| paymentReference<mark style="color:red;">\*</mark> | String | This is the unique identifier for a transaction, to be generated by merchant. |

{% tabs %}
{% tab title="200: OK Successful" %}

```javascript
{
 "status": "SUCCESS",
 "data": {
          "code": "00",
          "payments": {
                       "redirectLink": "http://checkout.seerbitapi.com/#/?mid=merchantpublickey&paymentReference=643108207792124616573324",
                       "paymentStatus": "08"
          },
        "message": "Successful"
    }
}
```

{% endtab %}

{% tab title="409: Conflict Transaction Exists" %}

```javascript
{
    "message": "Transaction Exists",
    "error": "PROCESSING"
}
```

{% endtab %}
{% endtabs %}
