PK k?\y)u u % systempay/elements/systempaylabel.phpnu W+A attributes('class') ? 'class="'.$node->attributes('class').'"' : 'class="text_area"' );
return '';
}
}PK k?\) systempay/elements/.htaccessnu W+A
Order allow,deny
Deny from all
PK k?\ ) systempay/elements/systempaymultilist.phpnu W+A children() as $option)
{
$val = $option->attributes('value');
$text = $option->data();
$options[] = JHTML::_('select.option', $val, JText::_($text));
}
// Construct the various argument calls that are supported.
$attribs = ' ';
if ($v = $node->attributes( 'size' )) {
$attribs .= 'size="'.$v.'"';
}
if ($v = $node->attributes( 'class' )) {
$attribs .= 'class="'.$v.'"';
} else {
$attribs .= 'class="inputbox"';
}
if ($m = $node->attributes( 'multiple' ))
{
$attribs .= ' multiple="multiple"';
$ctrl .= '[]';
}
// Render the HTML SELECT list.
return JHTML::_('select.genericlist', $options, $ctrl, $attribs, 'value', 'text', $value, $control_name.$name );
}
}PK k?\tZ: : # systempay/elements/systempayurl.phpnu W+A attributes('class') ? 'class="'.$node->attributes('class').'"' : 'class="text_area"' );
if ($node->attributes( 'default' ) == $value)
{
$value = JURI::root(). $value;
}
if ($node->attributes( 'editable' ) == 'true')
{
$size = ( $node->attributes('size') ? 'size="'.$node->attributes('size').'"' : '' );
return '';
}
else
{
return '';
}
}
}PK k?\ systempay/index.htmlnu W+A PK k?\) systempay/.htaccessnu W+A
Order allow,deny
Deny from all
PK k?\) .htaccessnu W+A
Order allow,deny
Deny from all
PK k?\V
index.htmlnu W+A
PK k?\U+ +
systempay.phpnu W+A 'int(11) UNSIGNED NOT NULL AUTO_INCREMENT',
'virtuemart_order_id' => 'int(1) UNSIGNED',
'order_number' => ' char(64)',
'virtuemart_paymentmethod_id' => 'mediumint(1) UNSIGNED',
'payment_name' => 'varchar(5000)',
'payment_order_total' => 'decimal(15,5) NOT NULL DEFAULT \'0.00000\'',
'payment_currency' => 'char(3)',
'cost_per_transaction' => 'decimal(10,2)',
'cost_percent_total' => 'decimal(10,2)',
'tax_id' => 'smallint(1)',
'systempay_custom' => 'varchar(255)',
'systempay_response_payment_amount' => 'char(15)',
'systempay_response_auth_number' => 'char(10)',
'systempay_response_payment_currency' => 'char(3)',
'systempay_response_payment_mean' => 'char(255)',
'systempay_response_payment_date' => 'char(20)',
'systempay_response_payment_status' => 'char(3)',
'systempay_response_payment_message' => 'char(255)',
'systempay_response_card_number' => 'char(50)',
'systempay_response_trans_id' => 'char(6)',
'systempay_response_expiry_month' => 'char(2)',
'systempay_response_expiry_year' => 'char(4)',
);
return $SQLfields;
}
/**
* Prepare data and redirect to Systempay payment platform
* @param string $order_number
* @param object $orderData
* @param string $return_context the session id
* @param string $html the form to display
* @param bool $new_status false if it should not be changed, otherwise new staus
* @return NULL
*/
function plgVmConfirmedOrder($cart, $order) {
return parent::plgVmConfirmedOrder($cart, $order);
}
/**
* Check Systempay response, save order if not done by server call and redirect to response page
* when client comes back from payment platform.
* @param int $virtuemart_order_id virtuemart order primary key concerned by payment
* @param string $html message to show as result
* @return
*/
function plgVmOnPaymentResponseReceived(&$html) {
return parent::plgVmOnPaymentResponseReceived($html);
}
/**
* Process a Systempay payment cancellation.
* @param int $virtuemart_order_id virtuemart order primary key concerned by payment
* @return
*/
function plgVmOnPaymentUserCancel(&$virtuemart_order_id) {
return parent::plgVmOnPaymentUserCancel($virtuemart_order_id);
}
/**
* Check Systempay response, save order and empty cart (if payment success) when server notification is received from payment platform.
* @param string $return_context session id
* @param int $virtuemart_order_id virtuemart order primary key concerned by payment
* @param string $new_status new order status
* @return
*/
function plgVmOnPaymentNotification() {
return parent::plgVmOnPaymentNotification();
}
/**
* Display stored payment data for an order
* @see components/com_virtuemart/helpers/vmPaymentPlugin::plgVmOnShowOrderPaymentBE()
*/
function plgVmOnShowOrderBEPayment($virtuemart_order_id, $payment_method_id) {
return parent::plgVmOnShowOrderBEPayment($virtuemart_order_id, $payment_method_id);
}
/**
* We must reimplement this triggers for joomla 1.7
*/
/**
* Create the table for this plugin if it does not yet exist.
* This functions checks if the called plugin is active one.
* When yes it is calling the standard method to create the tables
* @author Valérie Isaksen
*
*/
function plgVmOnStoreInstallPaymentPluginTable($jplugin_id) {
return parent::onStoreInstallPluginTable($jplugin_id);
}
/**
* This event is fired after the payment method has been selected. It can be used to store
* additional payment info in the cart.
*
* @author Max Milbers
* @author Valérie isaksen
*
* @param VirtueMartCart $cart: the actual cart
* @return null if the payment was not selected, true if the data is valid, error message if the data is not vlaid
*
*/
public function plgVmOnSelectCheckPayment (VirtueMartCart $cart, &$msg) {
return parent::OnSelectCheck($cart);
}
/**
* plgVmDisplayListFEPayment
* This event is fired to display the pluginmethods in the cart (edit shipment/payment) for exampel
*
* @param object $cart Cart object
* @param integer $selected ID of the method selected
* @return boolean True on succes, false on failures, null when this plugin was not selected.
* On errors, JError::raiseWarning (or JError::raiseError) must be used to set a message.
*
* @author Valerie Isaksen
* @author Max Milbers
*/
public function plgVmDisplayListFEPayment(VirtueMartCart $cart, $selected = 0, &$htmlIn) {
return parent::displayListFE($cart, $selected, $htmlIn);
}
/*
* plgVmonSelectedCalculatePricePayment
* Calculate the price (value, tax_id) of the selected method
* It is called by the calculator
* This function does NOT to be reimplemented. If not reimplemented, then the default values from this function are taken.
* @author Valerie Isaksen
* @cart: VirtueMartCart the current cart
* @cart_prices: array the new cart prices
* @return null if the method was not selected, false if the shiiping rate is not valid any more, true otherwise
*
*
*/
public function plgVmonSelectedCalculatePricePayment(VirtueMartCart $cart, array &$cart_prices, &$cart_prices_name) {
return parent::onSelectedCalculatePrice($cart, $cart_prices, $cart_prices_name);
}
/**
* plgVmOnCheckAutomaticSelectedPayment
* Checks how many plugins are available. If only one, the user will not have the choice. Enter edit_xxx page
* The plugin must check first if it is the correct type
* @author Valerie Isaksen
* @param VirtueMartCart cart: the cart object
* @return null if no plugin was found, 0 if more then one plugin was found, virtuemart_xxx_id if only one plugin is found
*
*/
function plgVmOnCheckAutomaticSelectedPayment(VirtueMartCart $cart, array $cart_prices = array(), &$paymentCounter) {
return parent::onCheckAutomaticSelected($cart, $cart_prices, $paymentCounter);
}
/**
* This method is fired when showing the order details in the frontend.
* It displays the method-specific data.
*
* @param integer $order_id The order ID
* @return mixed Null for methods that aren't active, text (HTML) otherwise
* @author Max Milbers
* @author Valerie Isaksen
*/
public function plgVmOnShowOrderFEPayment($virtuemart_order_id, $virtuemart_paymentmethod_id, &$payment_name) {
parent::onShowOrderFE($virtuemart_order_id, $virtuemart_paymentmethod_id, $payment_name);
}
/**
* This event is fired during the checkout process. It can be used to validate the
* method data as entered by the user.
*
* @return boolean True when the data was valid, false otherwise. If the plugin is not activated, it should return null.
* @author Max Milbers
public function plgVmOnCheckoutCheckDataPayment($psType, VirtueMartCart $cart) {
return null;
}
*/
/**
* This method is fired when showing when priting an Order
* It displays the the payment method-specific data.
*
* @param integer $_virtuemart_order_id The order ID
* @param integer $method_id method used for this order
* @return mixed Null when for payment methods that were not selected, text (HTML) otherwise
* @author Valerie Isaksen
*/
function plgVmonShowOrderPrintPayment($order_number, $method_id) {
return parent::onShowOrderPrint($order_number, $method_id);
}
/**
* Save updated order data to the method specific table
*
* @param array $_formData Form data
* @return mixed, True on success, false on failures (the rest of the save-process will be
* skipped!), or null when this method is not actived.
public function plgVmOnUpdateOrderPayment( $_formData) {
return null;
}
*/
/**
* Save updated orderline data to the method specific table
*
* @param array $_formData Form data
* @return mixed, True on success, false on failures (the rest of the save-process will be
* skipped!), or null when this method is not actived.
public function plgVmOnUpdateOrderLine( $_formData) {
return null;
}
*/
/**
* plgVmOnEditOrderLineBE
* This method is fired when editing the order line details in the backend.
* It can be used to add line specific package codes
*
* @param integer $_orderId The order ID
* @param integer $_lineId
* @return mixed Null for method that aren't active, text (HTML) otherwise
public function plgVmOnEditOrderLineBE( $_orderId, $_lineId) {
return null;
}
*/
/**
* This method is fired when showing the order details in the frontend, for every orderline.
* It can be used to display line specific package codes, e.g. with a link to external tracking and
* tracing systems
*
* @param integer $_orderId The order ID
* @param integer $_lineId
* @return mixed Null for method that aren't active, text (HTML) otherwise
public function plgVmOnShowOrderLineFE( $_orderId, $_lineId) {
return null;
}
*/
function plgVmDeclarePluginParamsPayment($name, $id, &$data) {
return parent::declarePluginParams('payment', $name, $id, $data);
}
function plgVmSetOnTablePluginParamsPayment($name, $id, &$table) {
return $this->setOnTablePluginParams($name, $id, $table);
}
}
// No closing tagPK k?\ ]
l4' 4'
systempay.xmlnu W+A
VM - Payment, SystempayJuly 04 2012Lyra Networksupportvad@lyra-network.comhttp://www.lyra-network.comCopyright Lyra Network.http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL2.0.8c
Systempay is a multi bank payment provider. ]]>
systempay.phpsystempaylanguageBE/en-GB.plg_vmpayment_systempay.inilanguageBE/fr-FR.plg_vmpayment_systempay.iniSystempay.jpg
/>
PK k?\V systempay/elements/index.htmlnu W+A PK k?\y)u u % l systempay/elements/systempaylabel.phpnu W+A PK k?\) 6 systempay/elements/.htaccessnu W+A PK k?\ ) systempay/elements/systempaymultilist.phpnu W+A PK k?\tZ: : # systempay/elements/systempayurl.phpnu W+A PK k?\ y systempay/index.htmlnu W+A PK k?\) systempay/.htaccessnu W+A PK k?\) .htaccessnu W+A PK k?\V
7 index.htmlnu W+A PK k?\U+ +
systempay.phpnu W+A PK k?\ ]
l4' 4'
VD systempay.xmlnu W+A PK k