Download the PHP package martyn911/payop without Composer
On this page you can find all versions of the php package martyn911/payop. 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 payop
PAYOP API WRAPPER
Include base class
require_once 'Payop.php';
const PAYOK_PUBLIC = 'public_key';
const PAYOK_SECRET = 'secret_key';
Init payment
// Order params
$params['order']['id'] = 1;
$params['order']['amount'] = '2.0000';
$params['order']['currency'] = 'UAH';
$params['order']['description'] = 'test payment';
$params['customer']['email'] = '[email protected]';
$params['resultUrl'] = 'https://site.ua/success.html';
$params['failUrl'] = 'https://site.ua/error.html';
$payop = new Payop(PAYOK_PUBLIC, PAYOK_SECRET);
header("Location: " . $payop->createPayment($params));
Handle response
$payop = new Payop(PAYOK_PUBLIC, PAYOK_SECRET);
$response = $payop->paymentHandler();
if($response->status == Payop::STATUS_WAIT){
//wait
}
if($response->status == Payop::STATUS_SUCCESS){
//success
}
if($response->status == Payop::STATUS_ERROR){
//error
}
print_r($response);
All versions of payop with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package martyn911/payop contains the following files
Loading the files please wait ....