Git Product home page Git Product logo

paratika's Introduction

Paratika Sanal Pos Kurulumu

  • ParatikaConf.class.php => Proje ayarlarının bulunduğu dosya.
  • post.php => paratika servislerinden ödeme almak için oluşturulmuş örnek dosya
  • return.php => paratika servislerinden ödeme sonucu dönülecek sayfa
  • sonucSorgula.php => paratika ödeme sonucu sorgulamak için oluşturulmuş örnek dosya

Ortak Ödeme Sayfası İle Ödeme Almak İçin Gerekli Adımlar

  • ParatikaConf.class.php Dosyası İçersinde bulunan paratikaType sabitini 3D_PAY_HOSTING olarak değiştirin.

Kart bilgilerinin sizin tarafınızdan Alındığı Ödeme yöntemi için (3D Direct)

  • ParatikaConf.class.php Dosyası İçersinde bulunan paratikaType sabitini 3D_PAY_DIRECT olarak değiştirin.

Kullanım

Öncelikle ParatikaConf.class.php dosyasını require edin.

ParatikaConf.class.php dosyasında gerekli ayarlamaları yapın.

$paratika = new ParatikaOdemeYap;
$paratika->aliciMail    = "[email protected]";
$paratika->aliciAdSoyad = "Hasan Kaya";
$paratika->aliciTelefon = "00000000000";
$paratika->musteriAdres = "Müşteri Adres";
$paratika->musteriSehir = "Müşteri Şehir";
$paratika->musteriUlke = "Türkiye";
$paratika->musteriPostaKodu = "34440";
$paratika->musteriTelefon = "05355555555";

$urun = array(
"code"=>12345,
"name"=>"ödeme",
"quantity"=>1,
"description"=>"Deneme urunu",
"amount"=>10
);

$paratika->urun = json_encode($urun);
$paratika->tutar = 10;
$req = json_decode($paratika->createToken(),true);

if($req["Status"] == true) {
    $token = $req["token"];
    $url = $req["url"];
    $formUrl = $req["formUrl"];
    $apiType = $req["ApiType"];
}else{

    echo json_encode($req);
    die;
}


Ortak Ödeme Sayfası İle Ödeme Alma

$paratika->odemeYonlendir($token);

3D Direct İle Ödeme Alma

    <form action="<?php echo $formUrl; ?>" method="post">
        <input type="text" name="cardOwner" placeholder="Card Owner" maxlength="32" value="h kaya" />
        <input type="text" name="pan" placeholder="PAN" maxlength="19" value="4546711234567894" />
        <select name="expiryMonth">
            <option value="12">February</option>
        </select>
        <select name="expiryYear">
            <option value="2026">2026</option>
        </select>
        <input type="password" name="cvv" placeholder="CVV" maxlength="4" value="000" />
        <input type="checkbox" name="saveCard" />
        <input type="text" name="cardName" placeholder="Card Name" value="test test"/>
        <input type="text" name="cardCutoffDay" placeholder="Card Cutoff Day" value="1"/>
        <input type="text" name="installmentCount" placeholder="Installment Count" value="5"/>
        <input type="hidden" name="points" />
        <input type="submit" value="Submit" />
    </form>

Diğer Servisler

Ödeme Sorgulama

//oluşturduğunuz token bilgisini göndererek ödeme sonucunu kontrol edebilirsiniz.

$paratika = new ParatikaOdemeYap;
echo $paratika->odemeSorgula("AT7WZYQYGAVL4PUXGKZ2VFJMYMEYA6JSAR42IA7RAWIPODX7");


Notlar

Çoklu Ürün Göndermek İçin

$urun = array(
  "code"=>12345,
  "name"=>"ödeme",
  "quantity"=>1,
  "description"=>"Deneme urunu",
  "amount"=>10
);
$urun2 = array(
  "code"=>12345,
  "name"=>"ödeme",
  "quantity"=>1,
  "description"=>"Deneme urunu",
  "amount"=>10
);

$paratika->urun = json_encode($urun).json_encode($urun2);

Sistem, çoklu ürün gönderimi dahil tamamen en basit şekilde kodlanmıştır. Bir sorunla karşılaşmanız durumunda iletişime geçebilirsiniz.

paratika's People

Contributors

hasankaya53 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.