Yii 1.1: worldpay

Allows integration with Worldpay ecommerce system
3 followers

This extension allows a quick an easy method of sending payments or donations to the Worldpay e-commerce web platform.

http://www.worldpay.com/

Requirements

Yii 1.1 or +

Usage

Move the files to the components directory of your application and edit config/main.php as appropriate. Here, my xml class is in a directory called xml.

// autoloading model and component classes
         'import'=>array(
                 'application.models.*',
                 'application.components.*',
                 'application.components.xml.*',
         ),

From controller:

          $config = array(
          'wpMerchantId' => 'xxxxxx',
          'wpMerchantKey' => 'xxxxxx',
          'wpVersion' => '1.4',
          'wpInstallationId' => 'xxxxxx',
          'wpCurrency' => 'xxx',
          'wpServerUrl' => 'xxx',
          'wpSuccessUrl' => 'xxx',
          'wpFailUrl' => 'xxx',
          'purchaseName' => 'xxx',
          'purchaseDesc' => 'xxx',
          'purchaseCount' => 'xxx',
          'purchaseId' => 'xxx',
          'buyerTitle' => 'xxx',
          'buyerFirst' => 'xxx',
          'buyerLast' => 'xxx',
          'buyerPhone' => 'xxx',
          'buyerEmail' => 'xxx',
          'buyerPostcode' => 'xxx',
          'buyerHouseNo' => 'xxx',
          'buyerAddressTwo' => 'xxx',
          'buyerCity' => 'xxx',
          'buyerCountry' => 'xxx',
          'buyerCardType' => 'xxx';
          'certPath' => 'xxx';
           );

$cart = new worldpayCart($config);
$cart->send_worldpay_xml($cart->get_XML());

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads