yii-paybox Paybox service connector for Yii.

  1. Requirements
  2. Usage
  3. Resources

Paybox service connector for Yii.

Requirements

Yii 1.1.x

Before using this extension you must first have created an account with Paybox.

Usage

For now only Paybox Direct is supported.

$paybox = new EPayboxDirectPayment;
$paybox->debug = YII_DEBUG;
$paybox->site = Yii::app()->params['payboxSite'];
$paybox->rank = Yii::app()->params['payboxRank'];
$paybox->key = Yii::app()->params['payboxKey'];
$paybox->initializeRequest(array(
    'amountCents' => 2500,
    'ccNumber' => '1111222233334444',
    'ccExpDate' => '0915',
    'cvvCode' => '123',
    'reference' => strtoupper(uniqid('', true)),
    'currency' => 'EUR',
    'countryCode' => true,
    'cardType' => true,
    //'errorCodeTest' => PayboxDirectResponse::RETURN_INVALID_CARD_NUMBER,
));

if ($paybox->authorizeAndSendPayment()) {
    $response = $paybox->getResponse();
    print_r($response->getRawData());
}
else
    throw new CException($paybox->getError());

Resources

1 0
2 followers
327 downloads
Yii Version: 1.1
License: LGPL-3.0
Category: Web Service
Developed by: ianaré
Created on: Apr 4, 2013
Last updated: 5 years ago

Downloads

show all

Related Extensions