Paynet API
1.0.1
1.0.1
  • Başlarken
  • Nasıl Erişirim?
  • Neye İhtiyacım var?
  • Hazır Altyapılar
  • Ödeme Metotları
    • API Entegrasyonu
      • Ödeme
      • 3D ile ödeme
    • Hazır Form
    • Özelleştirilebilir Form
      • Event Parametreleri
      • Servis Parametreleri
    • PayLink
      • PayLink Oluşturma
        • POST Metodu
        • confirmation_url'e Post Edilen Parametreler
      • PayLink Detay
      • PayLink Listeleme
      • PayLink Durum Güncelleme
  • SERVİSLER
    • İşlem
      • Ödeme Onaylama
      • Finansallaştırma
      • Ödeme Kontrol
      • İşlem Detay
      • İşlem Listesi
      • İşlem İşaretleme
      • İşlem Bilgi Ekleme
      • İşlem Slip
      • İmza Yükle
      • Ödeme Raporu
      • Escrow Durum Güncelleme
    • İptal/İade
      • İade
      • İade Listesi
      • Ön Otorizasyon İptal
      • Finansallaştırma İptal
    • Oran
      • Oran Tablosu(Sunucu Tabanlı)
      • Oran Tablosu(İstemci Taraflı)
      • Oran Tipi Düzenleme
      • Oran Tipi Silme
      • Oran Tanımlama
    • Bayi
      • Auto Login
      • Login
      • Bayi Kontrol
      • Limit
    • Abonelik
      • Oluşturma
      • Detay
      • Listeleme
      • Durum Güncelleme
      • Tutar Güncelleme
      • Tekrar Gönder
      • Kart Bilgisi Listesi
      • Kart Etiket Bilgisi Güncelleme
      • Kart Bilgisi Silme
      • Kart İlişkilendirme
      • Kart Ekleme
        • Kart ekleme başlatma
        • Kart ekleme tamamlama
      • Kart Bilgisi Sıra Düzenleme
      • Kart Bilgisi Filtreleme
      • Fatura oluşturma
      • Fatura Listesi
      • Fatura Durum Güncelleme
      • Fatura Tutar Güncelleme
      • Plan Tutar Güncelleme
      • Toplu Fatura Durum Güncelleme
      • Fatura Ödeme Girişimi Listesi
      • Manuel Çekim
    • Kart Saklama
      • Kart Bilgisi Saklama
      • Kart Silme
      • Kart Açıklaması Güncelleme
      • Kart Listesi
      • OTP Gönderme
      • OTP Kontrol
    • Cari Hesap Entegrasyonu
    • Fatura
    • Başvuru
      • Başvuru Oluşturma
      • Başvuru Çekme
      • Form Tipine Bağlı Dokümanlar
  • GENEL BİLGİLER
    • Banka Kodları
    • Taksit Kodları
    • Hata Kodları
      • HTTP Status Kodlar
      • Hata Tipleri
      • Dönüş Kodları
    • Veri Tipleri
      • Status
      • Kart Tipi
      • İşlem Tipi
    • Test Kartları
    • Örnek Projeler
    • Sıkça Sorulan Sorular
      • Kart Saklama Süreci Hakkında
  • English
    • What I need ?
    • API Integration
      • Payment
      • 3D Payment
    • Card Save
      • Card Information Saving
      • Deleting Card
      • Card Description Update
      • Card List
      • Sending OTP
      • OTP Control
    • Transaction
      • Payment Confirmation
      • Financialization
      • Payment Check
      • Transaction Details
      • Transaction List
      • Transaction Marking
      • Adding Transaction Information
      • Transaction Slip
      • Upload Signature
      • Payment Report
      • Escrow Status Update
    • Cancellation/Refund
      • Refund
      • Refund List
      • Pre-Authorization Cancellation
      • Financialization Cancellation
    • Agent
      • Auto Login
Powered by GitBook
On this page
  1. English

What I need ?

PreviousKart Saklama Süreci HakkındaNextAPI Integration

Last updated 1 year ago

It is necessary to has "Paynet API KEY" to use Paynet payment method and access services. If you are Paynet customer you can request Paynet API keys from address. If you are not Paynet customer yet, you can request Paynet API key from destek@paynet.com.tr mail address.

It's necessary to has an static IP address to access Paynet services.

Both test system and live system support only TLS 1.1 and TLS 1.2 as security communication rule.

Use live system's URL and API Keys for using the live system.

Secret Key

It is using for authenticate Paynet API Rest Services. The authentication type is HTTP Basic Authentication. Secret key is sent in the Authentication header of the HTTP Request. All sent requests must have an authentication header.

Authorization: Basic sck_pcs_jECRyoZq0khnsV9elaF/SIBVvxQI+bIW

In the following example you can see how to perform basic authentication ;

<?php  
			
$secret_key = "sck_pcs_rMnxDSW/43243434/YAzXXXXXXXXXXXX";
$PostURL = "https://pts-api.paynet.com.tr/v1/transaction/charge";
			
$session_id = $_REQUEST["session_id"];
$token_id 	= $_REQUEST["token_id"];
			
	
$params = array(
			'session_id' => $session_id,
			'token_id' => $token_id,
			'transaction_type' => 1,				
);
			
$options = array(
			'http' => array(
					'header'  =>"Accept: application/json; charset=UTF-8\r\n".
					"Content-type: application/json; charset=UTF-8\r\n".
					"Authorization: Basic ".$secret_key,
					'method'  => 'POST',
					'content' => json_encode($params),
					'ignore_errors' => true
					),
			);
			
$context  = stream_context_create($options);
$result = json_decode(@file_get_contents($PostURL, false, $context));
			
if($result->is_succeed == true)
{
  echo "Başarılı";
}
else
{
  echo "Başarısız";
}
			
?>
odeme.paynet.com.tr