# In Car Pay Integration

## 1.In Car Pay Flow

<figure><img src="https://3604734571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaz8tFKqEd6volXC5G4B%2Fuploads%2F2VVhf3JqnX5SlpjFfkpW%2FArac%CC%A7tan%20O%CC%88deme%20YKB%20(1).jpg?alt=media&#x26;token=dc8572c5-8663-4e3c-8ad6-a90d8b43dc6a" alt=""><figcaption><p>In car pay flow</p></figcaption></figure>

## 2.Bank App Protocol

{% content-ref url="../payment-services/bank-app-protocol" %}
[bank-app-protocol](https://developer.tokeninc.com/token-developer-portal-1/payment-service/payment-services/bank-app-protocol)
{% endcontent-ref %}

### **2.1 Sale**

Add below datas and use them in your In Car Pay flow.

**plate** :  String: Plate number of the refueled vehicle. Ex:   "34AA111"

### **2.2 Parameter**&#x20;

Add CarPayAllowed into **Allowed Operations** as Parameter Action Response Data if In Car Pay supported.&#x20;

**Allowed Operations**

Allowed Operations will be added with the "AllowedOperations" tag. The allowed transactions will be added as JSON Object, whether the terminal allows payment with QR or not and whether it allows Key In transactions. It will be indicated with “1” if the operation is allowed, “0” if not.

Allowed Operations Bundle Example

```java
AllowedOperations={"QrAllowed":1,"KeyInAllowed":0, "DovizPOSAllowed":1, "CarPayAllowed":1}
```

## **3.Card Service**

{% content-ref url="../payment-services/card-service" %}
[card-service](https://developer.tokeninc.com/token-developer-portal-1/payment-service/payment-services/card-service)
{% endcontent-ref %}

### **getCard(...) API Details**

```java
.
.
.
"carPay": 1
```

<mark style="color:red;">Note</mark>: carPay should be set  for **getCard.**

**Returns getCard(...) API**&#x20;

<pre class="language-java"><code class="lang-java">"mCardReadType": 7
"resultCode":0
<strong>"mTranAmount1":2000
</strong></code></pre>

## 4.Example Videos

### 4.1.Sale Flow

{% file src="<https://3604734571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPaz8tFKqEd6volXC5G4B%2Fuploads%2Fh6TzFMX40rDwjAS9m30V%2FinCarPaySale.mov?alt=media&token=72650056-c324-41de-908f-aefef13fa36a>" %}
