Skip to content

IdeasoftLabs/payu

Repository files navigation

payu Build Status

PayU software development kit for PHP

Installing payu

The easiest way to install payu is through composer.

composer require ideasoft/payu

How to create token

Example file : create_token.php

<?php
// request
$request = new CreateTokenRequest($param);
/** @var \IdeaSoft\PayU\Response\CreateTokenResponse $response */
$response = $request->send();
$token = $response->getTokenHash();

How to pay with token

Example file : pay_with_token.php

<?php
// request
$request = new PayWithTokenRequest($param);
/** @var \IdeaSoft\PayU\Response\PayWithTokenResponse $response */
$response = $request->send();
$refNo = $response->getRefNo();

About

PayU Software Development Kit for PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages