payconn/ipara

iPara payment processing library for PHP

v1.1.0 2020-09-28 06:07 UTC

This package is auto-updated.

Last update: 2024-03-28 13:38:02 UTC


README

68747470733a2f2f69706172612e636f6d2e74722f6173736574732f696d672f69706172612d6c6f676f2e737667

Payconn: iPara

iPara gateway for Payconn payment processing library

68747470733a2f2f7472617669732d63692e636f6d2f706179636f6e6e2f69706172612e7376673f6272616e63683d6d6173746572

Installation | Supported Methods | Basic Usages


Payconn is a framework agnostic, multi-gateway payment processing library for PHP. This package implements common classes required by Payconn.

Installation

$ composer require payconn/ipara

Supported card families

  • Bonus
  • World
  • Axess
  • Maximum
  • Paraf
  • CardFinans
  • Sağlam Kart
  • Advantage

Supported methods

  • purchase
  • authorize
  • complete
  • refund

Basic Usage

use Payconn\Ipara;
use Payconn\Ipara\Token;
use Payconn\Ipara\Product;
use Payconn\Ipara\Model\Purchase;
use Payconn\Common\CreditCard;

$token = new Token('YOUR_PUBLIC_KEY', 'YOUR_PRIVATE_KEY');
$purchase = new Purchase();
$purchase->setTestMode(true);
$purchase->setAmount(100);
$purchase->setInstallment(1);
$purchase->setFirstName('Murat');
$purchase->setLastName('Sac');
$purchase->setEmail('muratsac@mail.com');
$purchase->addProduct((new Product('001', 'Test', 100)));
$purchase->setCreditCard((new CreditCard('4282209027132016', '2024', '12', '358'))
    ->setHolderName('MuratSac'));
$purchase->generateOrderId();
$response = (new Ipara($token))->purchase($purchase);
if($response->isSuccessful()){
    // success!
}

Change log

Please see UPGRADE for more information on how to upgrade to the latest version.

Support

If you are having general issues with Payconn, we suggest posting on Stack Overflow. Be sure to add the

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

Security

If you discover any security related issues, please email muratsac@mail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.