> For the complete documentation index, see [llms.txt](https://doc.paynet.com.tr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.paynet.com.tr/uornek/servisler/kart-saklama/1.oedeme-sirasinda-kart-saklama/1.4.kart-bilgilerini-yollama-v1-paynetj-create_token.md).

# 1.4.Kart Bilgilerini Yollama

Bu servis ile girilen kart bilgisi ve seçilen taksit api’ye gönderilir. Karşılığında 3D’siz işlemlerde kullanmak için bir token değeri döner bu token değeri ile server side’da charge servisi ile onay verilir. **3D’li işlemlerde;** token değeri ile beraber 3D’li işlemi başlatmak için token\_id değerinin post edileceği adres post\_url parametresi ile döner. Bu adrese token\_id ile beraber session\_id ve size verilen publishable\_key değerlerini http post ya da http get methodları ile göndererek post\_url sayfasını uygulama üzerinde browserda açmalısınız. Bu sayede bankaların 3D doğrulama sayfasına yönlendirilmiş olursunuz. 3D doğrulama sonucunda, doğrulama işleminin sona erdiğini browser’ın tekrardan paynet.com.tr domainine redirect edildiğinde anlayabilirsiniz. Paynet.com.tr domainine redirect edildiğinde, uygulama içersinde açılan browser’ı kapatıp, charge servisine geçebilirsiniz, işlemin başarılı ya da başarısız olduğunu bu servisi ile anlayabilirsiniz. Bu adım ile sadece 3D doğrulaması yapılmış olur, kredi kartından tutar tahsil edilmez. Kredi kartından tutarın tahsil edilmesi için charge servisi başarılı şekilde çağrılmalıdır.

{% hint style="success" %}
<https://api.paynet.com.tr/v1/paynetj/create_token>
{% endhint %}

{% tabs %}
{% tab title="İstek Parametreleri" %}

| Parametre İsmi          | Tip    | Zorunlu | Açıklama                                      |
| ----------------------- | ------ | ------- | --------------------------------------------- |
| **session\_id**         | string | Evet    | Auth servisiyle ilgili alınan session bilgisi |
| **card\_holder**        | string | Evet    | Kart sahibi                                   |
| **pan**                 | string | Evet    | Kredi kartı no                                |
| **month**               | int    | Evet    | Kart son kullanım tarihi ay                   |
| **year**                | int    | Evet    | Kart son kullanım tarihi yıl                  |
| **cvc**                 | string | Evet    | Kart güvenlik kodu                            |
| **instalment\_key**     | string | Evet    | Seçilen oranın key’i.                         |
| **do\_3ds**             | bool   | Evet    | 3D’li işlem ise true                          |
| **ip**                  | string | Evet    | İşlemi yapan client’in ip'si                  |
| **client\_id**          | string |         | Client’a atılan benzersiz bir token değeri    |
| **description**         | string |         | Açıklama                                      |
| **card\_holder\_phone** | string |         | Kart sahibi telefon numarası                  |
| **card\_holder\_mail**  | string |         | Kart sahibi email numarası                    |
| {% endtab %}            |        |         |                                               |

{% tab title="Dönüş Parametreleri" %}

| Parametre İsmi   | Tip    | Açıklama                                                                                                                 |
| ---------------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
| **token\_id**    | string | Kredi kartı işlemini tamamlamak için kullanılacak token değeri                                                           |
| **post\_url**    | string | Kart saklamalı işlemlerinde publishable\_key, token\_id ve session\_id parametrelerinin post edileceği url               |
| **is\_tds**      | string | İşlemin 3D’li mi 3D’siz mi olduğunu gösterir                                                                             |
| **object\_name** | string | Dönen cevabın nesne adı                                                                                                  |
| **code**         | string | İşlemin cevap kodu 0 ise işlem başarılıdır. Bknz.[Dönüş Kodları](/uornek/genel-bilgiler/hata-kodlari/doenues-kodlari.md) |
| **message**      | string | İşlemin cevap koduna göre mesaj barındırır.                                                                              |
| {% endtab %}     |        |                                                                                                                          |

{% tab title="Request" %}

```
{  
       "session_id":"js_EAAAACbRzo74tNbO56EdJtHWkJVbbpGnwpPHtzweU2A0LzPu",
       "card_holder":"gokhan oztorun",
       "pan":"434678654654654",
       "month":"12",
       "year":"2019",
       "cvc":"123",
       "instalment_key":"ji_EAAAAOuvvlNfndedwQPqpTDFWAQtLi6ggCRe0hpgC3hswDcT",
       "do_3ds":"true",
       "ip":"21356455",
       "client_id":"123456789",
       "description":"deneme",
       "card_holder_phone":"5XXXXXXXXX",
       "card_holder_mail":"oxxxx@gmail.com"
 }
```

{% endtab %}

{% tab title="Response" %}

```
{  
   "token_id":"jt_EAAAAIEOepBMwb1HKJddqx7r9NsyxCFd4cwglcnWsP36nZd+RyhJjac485Io+F3GB FVzflD0ySWTvhhRdCMRM8y/19g=",
   "post_url":"http://pts-api.paynet.com.tr/v1/paynetjgate/tds",
   "is_tds":true,
   "obeject_name":"paynetj_token",
   "code":0,
   "message":"Başarılı Islem"
}
```

{% endtab %}

{% tab title="Service Url" %}

| Sistem           | URL                                                                                                                                                                                                                                                                       |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Canlı Sistem** | [https://api.paynet.com.tr\[/v1/paynetj/create\\\_token](https://doc.paynet.com.tr/uornek/servisler/kart-saklama/1.oedeme-sirasinda-kart-saklama/https:/api.paynet.com.tr\[/v1/paynetj/create\\_token)]\(<https://api.paynet.com.tr/v1/paynetj/create_token>)             |
| **Test Sistemi** | [https://pts-api.paynet.com.tr​​\[/v1/paynetj/create\\\_token](https://doc.paynet.com.tr/uornek/servisler/kart-saklama/1.oedeme-sirasinda-kart-saklama/https:/pts-api.paynet.com.tr​​\[/v1/paynetj/create\\_token)]\(<https://api.paynet.com.tr/v1/paynetj/create_token>) |
| {% 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.paynet.com.tr/uornek/servisler/kart-saklama/1.oedeme-sirasinda-kart-saklama/1.4.kart-bilgilerini-yollama-v1-paynetj-create_token.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.
