inarli/payu-tools

Payunun resmi olarak sunduğu kütüphanesinde olmayan temel özellikler

Maintainers

Package info

github.com/inarli/payu-tools

pkg:composer/inarli/payu-tools

Statistics

Installs: 247

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

0.1.3 2017-08-24 08:24 UTC

This package is auto-updated.

Last update: 2026-03-01 00:23:48 UTC


README

PHP Client For PayU

Build Status

You can send request to PayU Rest API with this library;

Example;

<?php
require_once '../vendor/autoload.php';
    $merchant = new \PayuTools\Merchant('OPU_TEST', 'SECRET_KEY');
    $client = new \PayuTools\Client($merchant);
    $cancelRequest = new \PayuTools\Request\Token\CancelRequest('5213b33bad3c07e87e8f032c94452bdc', 'Token cancelled');
    $response = $client->send($cancelRequest);
    var_dump($response->getStatus());
    var_dump($response->getError());
    var_dump($response->getData());
?>