Download the PHP package past/paytr without Composer
On this page you can find all versions of the php package past/paytr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package paytr
Bu paket Paytr den laravel ile direct api, iframe api ve iframe havale eft ödeme seçeneklerini kullanarak ödeme alabilmek için geliştirilmiştir.
Nasıl Kurarım?
Config dosyası için kodu çalıştıralım.
.env ye bunları ekleyelim
Examples
Öd Diğer Ödeme Yöntemleri İçin; 1 - Direk Api Kıllanımı
$payment->getOption()->setTransactionType(TransactionType::DIRECT);
2- İframe Api Kullanımı
$payment->getOption()->setTransactionType(TransactionType::IFRAME);
3- İframe Havale/Eft Api Kullanımı
$payment->getOption()->setTransactionType(TransactionType::IFRAME_TRANSFER);
şeklinde kullanabilirsiniz.
$payment = new Payment(config('paytr.credentials'), config('paytr.options'));
$payment->getOption()->setTransactionType(TransactionType::DIRECT);
$payment->getOption()->setDebugOn(true);
$payment->getOption()->setTestMode(true);
$orderBasket = new Basket();
$product = new Product();
$product
->setName('Ürün Adı 1')
->setPrice(18.00);
$orderBasket->addProduct($product, 1);
$product = new Product();
$product
->setName('Ürün Adı 1')
->setPrice(18.00);
$orderBasket->addProduct($product, 1);
$paymentOrder = new Order();
$paymentOrder->setCardOwner("PAYTR TEST");
$paymentOrder->setCardNumber("4355084355084358");
$paymentOrder->setCardExpireMonth("12");
$paymentOrder->setCardExpireYear("24");
$paymentOrder->setCardCvv("000");
$paymentOrder->setUserName('User Name');
$paymentOrder->setUserAddress('User Address');
$paymentOrder->setEmail('[email protected]');
$paymentOrder->setUserPhone('55512345670');
$paymentOrder->setUserIp('176.240.120.7');
$paymentOrder->setMerchantOrderId('HOMEORDER113');
$paymentOrder->setPaymentAmount(99.90);
$paymentOrder->setBasket($orderBasket);
$payment->setOrder($paymentOrder);
return $payment->call();
All versions of paytr with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0|^8.1
guzzlehttp/guzzle Version ^7.0.1
illuminate/collections Version ^8|^9
illuminate/http Version ^9.0|^10.0
illuminate/support Version ^8.0|^9.0
guzzlehttp/guzzle Version ^7.0.1
illuminate/collections Version ^8|^9
illuminate/http Version ^9.0|^10.0
illuminate/support Version ^8.0|^9.0
The package past/paytr contains the following files
Loading the files please wait ....