payconn/wirecard

Wirecard payment processing library for PHP

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

This package is auto-updated.

Last update: 2024-03-28 14:23:26 UTC


README

68747470733a2f2f7777772e77697265636172642e636f6d2f6173736574732f6d656469612f4c6f676f732f77697265636172645f6461726b2e737667

Payconn: Wirecard

Wirecard (Bonus, World, CardFinans, Maximum, Paraf, Advantage) gateway for Payconn payment processing library

68747470733a2f2f7472617669732d63692e636f6d2f706179636f6e6e2f77697265636172642e7376673f6272616e63683d6d6173746572

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/wirecard

Supported methods

  • purchase
  • authorize
  • refund

Basic Usages

use Payconn\Common\CreditCard;
use Payconn\Wirecard;
use Payconn\Wirecard\Model\Purchase;
use Payconn\Wirecard\Token;

$token = new Token('<YOUR-USER-CODE>', '<YOUR-PIN>');
$purchase = new Purchase();
$purchase->setTestMode(true);
$purchase->setAmount(100);
$purchase->setInstallment(1);
$purchase->setDescription('<YOUR-DESCRIPTION>');
$purchase->setCreditCard((new CreditCard('4111111111111111', '2024', '01', '123'))
    ->setHolderName('<CARD-HOLDER-NAME>'));
$purchase->generateOrderId();
$response = (new Wirecard($token))->purchase($purchase);

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.