> For the complete documentation index, see [llms.txt](https://doc.borderlesspaymentng.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.borderlesspaymentng.com/payment/charge-local/card-s2s-integration.md).

# CARD S2S Integration

{% hint style="warning" %}
You have to redirect to the link which is returned in respomse data. In addition, you need to store the value of field reference and orderid for using api Verify Transaction.
{% endhint %}

## Charge Transaction

<mark style="color:green;">`POST`</mark> `https://borderlesspaymentng.com/api/charge`

#### Headers

| Name                                            | Type   | Description              |
| ----------------------------------------------- | ------ | ------------------------ |
| authorization<mark style="color:red;">\*</mark> | String | Bearer YOUR\_SECRET\_KEY |
| content-type<mark style="color:red;">\*</mark>  | String | application/json         |

#### Request Body

<table><thead><tr><th>Name</th><th width="191">Type</th><th>Description</th></tr></thead><tbody><tr><td>amount<mark style="color:red;">*</mark></td><td>String</td><td>amount</td></tr><tr><td>currency<mark style="color:red;">*</mark></td><td>String</td><td>currency - NGN/KES/GHM</td></tr><tr><td>reference<mark style="color:red;">*</mark></td><td>String</td><td>your transaction reference </td></tr><tr><td>firstname<mark style="color:red;">*</mark></td><td>String</td><td>first name</td></tr><tr><td>lastname<mark style="color:red;">*</mark></td><td>String</td><td>last name</td></tr><tr><td>email<mark style="color:red;">*</mark></td><td>String</td><td>email</td></tr><tr><td>phone<mark style="color:red;">*</mark></td><td>String</td><td>phone</td></tr><tr><td>cardName<mark style="color:red;">*</mark></td><td>String</td><td>card name</td></tr><tr><td>cardNumber<mark style="color:red;">*</mark></td><td>String</td><td>card number</td></tr><tr><td>cardCVV<mark style="color:red;">*</mark></td><td>String</td><td>card CVV</td></tr><tr><td>expMonth<mark style="color:red;">*</mark></td><td>String</td><td>expiry month - two digits</td></tr><tr><td>expYear<mark style="color:red;">*</mark></td><td>String</td><td>expiry year - two digits</td></tr><tr><td>country<mark style="color:red;">*</mark></td><td>String</td><td>county code by alpha 2</td></tr><tr><td>city<mark style="color:red;">*</mark></td><td>String</td><td>city</td></tr><tr><td>address<mark style="color:red;">*</mark></td><td>String</td><td>address</td></tr><tr><td>ip_address<mark style="color:red;">*</mark></td><td>String</td><td>ip address</td></tr><tr><td>zip_code<mark style="color:red;">*</mark></td><td>String</td><td>zip code</td></tr><tr><td>state<mark style="color:red;">*</mark></td><td>String</td><td>state </td></tr><tr><td>type<mark style="color:red;">*</mark></td><td>string</td><td>CARD</td></tr><tr><td>callback_url<mark style="color:red;">*</mark></td><td>String</td><td>callback url with method GET</td></tr><tr><td>webhook_url</td><td>String</td><td>webhook url with method POST</td></tr></tbody></table>

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

```json
{
  "status" : "success",
  "message" : "success",
  "data" : {
      "reference" : "abssjsu222",
      "orderid" : "1282827",
      "link" : "https://borderlesspaymentng.com/checkout/1136/a292929acvvb881272aajakakaka"
  }
}
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```json
{
    "status" : "failed",
    "message" : "Invalid Token"
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```json
{
    "status" : "failed",
    "message" : "Bad Request"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.borderlesspaymentng.com/payment/charge-local/card-s2s-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
