This extension allows a quick an easy method of sending payments or donations to the Worldpay e-commerce web platform.
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());
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.