Commit e264373e authored by John Punzalan's avatar John Punzalan

Add Ogone version Omise

parent 83fdf775
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package default_default
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
-->
<layout version="0.1.0">
<checkout_onepage_index>
<reference name="head">
<action method="addJs"><script>netresearch/ops/payment.js</script></action>
</reference>
<reference name="head">
<action method="addCss"><stylesheet>css/ops.css</stylesheet></action>
</reference>
</checkout_onepage_index>
<onestepcheckout_index_index>
<reference name="head">
<action method="addJs"><script>netresearch/ops/osc_payment.js</script></action>
<action method="addJs"><script>netresearch/ops/payment.js</script></action>
</reference>
<reference name="head">
<action method="addCss"><stylesheet>css/ops.css</stylesheet></action>
</reference>
</onestepcheckout_index_index>
<checkout_onepage_paymentmethod>
<block type="ops/frauddetection" name="ops_frauddetection" output="toHtml" />
</checkout_onepage_paymentmethod>
<checkout_onepage_payment>
<reference name="payment">
<block type="core/template" name="ops_iframe" as="ops_iframe" template="ops/iframe.phtml" />
</reference>
</checkout_onepage_payment>
<ops_payment_paypage>
<reference name="head">
<action method="addCss"><stylesheet>css/ops.css</stylesheet></action>
</reference>
<remove name="right"/>
<remove name="left"/>
<remove name="catalog.topnav"/>
<reference name="header">
<remove name="top.links"/>
<remove name="top.search"/>
<remove name="store_language"/>
<remove name="top.container"/>
</reference>
<reference name="footer">
<remove name="cms_footer_links"/>
<remove name="footer_links"/>
<remove name="store_switcher"/>
</reference>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="ops/paypage" name="ops_paypage" template="ops/paypage.phtml"/>
</reference>
</ops_payment_paypage>
<ops_payment_placeform>
<reference name="head">
<action method="addCss"><stylesheet>css/ops.css</stylesheet></action>
</reference>
<remove name="right"/>
<remove name="left"/>
<reference name="content">
<block type="ops/placeform" name="ops_placeform" template="ops/placeform.phtml"/>
</reference>
</ops_payment_placeform>
<ops_payment_placeform3dsecure>
<remove name="right"/>
<remove name="left"/>
<reference name="content">
<block type="ops/placeform3dsecure" name="ops_placeform3dsecure" template="ops/placeform3dsecure.phtml"/>
</reference>
</ops_payment_placeform3dsecure>
<customer_account>
<reference name="customer_account_navigation">
<action method="addLink" translate="label" module="ops" ifconfig="payment/ops_cc/active_alias"><name>ops_payment_information</name><path>ops/customer/aliases</path><label>My payment information</label></action>
</reference>
</customer_account>
<ops_customer_aliases translate="label" >
<label>My payment information</label>
<update handle="customer_account" />
<reference name="my.account.wrapper">
<block type="ops/alias_list" name="ops_customer_aliases" template="ops/customer/alias/list.phtml" />
</reference>
<reference name="root">
<action method="setHeaderTitle" translate="title" module="ops"><title>My payment information</title></action>
</reference>
</ops_customer_aliases>
</layout>
<?php
/**
* @category OPS
* @package Netresearch_OPS
* @author Thomas Birke <thomas.birke@netresearch.de>
* @author Michael Lühr <michael.luehr@netresearch.de>
* @copyright Copyright (c) 2012 Netresearch GmbH & Co. KG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Netresearch_OPS_CustomerController
*
* @author Thomas Birke <thomas.birke@netresearch.de>
* @author Michael Lühr <michael.luehr@netresearch.de>
* @copyright Copyright (c) 2012 Netresearch GmbH & Co. KG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* @var $this Netresearch_OPS_Block_Alias_List
*/
?>
<?php $aliases = $this->getAliases(); ?>
<div class="page-title">
<h1><?php echo Mage::helper('ops')->__('My payment information') ?></h1>
</div>
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
<?php echo $this->getChildHtml('pager'); ?>
<?php if(count($aliases)): ?>
<table class="data-table" id="ops-payment-information-table">
<col width="1" />
<col />
<col width="1" />
<col width="1" />
<thead>
<tr>
<th><?php echo Mage::helper('ops')->__('Credit Card Type') ?></th>
<th><?php echo Mage::helper('ops')->__('Card Number/Account Number') ?></th>
<th><?php echo Mage::helper('ops')->__('Expiration Date') ?></th>
<th><?php echo Mage::helper('ops')->__('Card Holder') ?></th>
<th><?php echo Mage::helper('ops')->__('State') ?></th>
<th></th>
</tr>
</thead>
<tbody>
<?php $_odd = ''; ?>
<?php foreach ($aliases as $alias): ?>
<?php $deleteUrl = $this->getAliasDeleteUrl($alias->getId()); ?>
<tr>
<td><?php echo $this->escapeHtml($alias->getBrand()); ?></td>
<td><?php echo $this->escapeHtml($alias->getPseudoAccountOrCCNo()); ?></td>
<td><?php echo $this->escapeHtml($alias->getExpirationDate()); ?></td>
<td><?php echo $this->escapeHtml($alias->getCardHolder()); ?></td>
<td><?php echo $this->escapeHtml($this->__($alias->getState())); ?></td>
<td><a href="<?php echo $deleteUrl ?>"><?php echo Mage::helper('ops')->__('Delete') ?></a></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else: ?>
<p><?php echo Mage::helper('ops')->__('You did not save any payment information, yet.'); ?></p>
<?php endif; ?>
<?php echo $this->getChildHtml('pager'); ?>
<div class="buttons-set">
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
</div>
This diff is collapsed.
<?php
/**
* @category OPS
* @package Netresearch_OPS
* @author Thomas Birke <thomas.birke@netresearch.de>
* @author Michael Lühr <michael.luehr@netresearch.de>
* @copyright Copyright (c) 2012 Netresearch GmbH & Co. KG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Netresearch_OPS_Model_Payment_Alias
*
* @author Thomas Birke <thomas.birke@netresearch.de>
* @author Michael Lühr <michael.luehr@netresearch.de>
* @copyright Copyright (c) 2012 Netresearch GmbH & Co. KG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/* $this instanceof Netresearch_OPS_Block_Form_Alias */
?>
<?php $_code = $this->getMethodCode() ?>
<?php $helper = Mage::helper('ops') ?>
<ul class="form-list ops-form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
<li>
<?php $inputType = (1 < count($this->getAvailableAliases())) ? 'radio' : 'hidden' ?>
<?php foreach ($this->getAvailableAliases() as $offset=>$alias): ?>
<div class="ops_alias_option_details">
<input type="<?php echo $inputType ?>" name="payment[ops_alias]" value="<?php echo $alias->getAlias(); ?>" id="ops_alias_option_<?php echo $offset ?>">
<label for="ops_alias_option_<?php echo $offset ?>">
<?php echo $helper->__('Credit Card') ?>
<?php echo $alias->getPseudoAccountOrCCNo(); ?>
(<?php echo $helper->__($alias->getBrand()); ?>)<br />
<?php echo $helper->__('expires: %s', $alias->getExpirationDate()) ?>
</label>
</div>
</select>
<?php endforeach; ?>
</li>
</ul>
<?php $code = $this->getMethodCode() ?>
<?php if ($code == 'ops_kwixoApresReception'): ?>
<ul class="form-list ops-form-list" id="payment_form_<?php echo $code ?>" style="display:none;">
<li>
<img src="<?php echo $this->getSkinUrl($this->getPmLogo()); ?>" />
</li>
<li>
<?php echo $this->__('kwixo_apres_reception_description'); ?>
</li>
</ul>
<?php endif; ?>
\ No newline at end of file
<?php $code = $this->getMethodCode() ?>
<?php if ($code == 'ops_kwixoComptant'): ?>
<ul class="form-list ops-form-list" id="payment_form_<?php echo $code ?>" style="display:none;">
<li>
<img src="<?php echo $this->getSkinUrl($this->getPmLogo()); ?>" />
</li>
<li>
<?php echo $this->__('kwixo_payement_en_1_fois_description');?>
</li>
</ul>
<?php endif; ?>
\ No newline at end of file
<?php $code = $this->getMethodCode() ?>
<?php if ($code == 'ops_kwixoCredit'): ?>
<ul class="form-list ops-form-list" id="payment_form_<?php echo $code ?>" style="display:none;">
<li>
<img src="<?php echo $this->getSkinUrl($this->getPmLogo()); ?>" />
</li>
<li>
<?php echo $this->__('paiement_en_plusiers_fois_description');?>
</li>
</ul>
<?php endif; ?>
\ No newline at end of file
<?php
$aid = $this->getTrackingCodeAid();
$sid = $this->getTrackingSid();
?>
<script type="text/javascript">
(function () {
var rd = document.createElement('script');
rd.type = 'text/javascript';
rd.async = true;
rd.src = ('https:' == document.location.protocol ? 'https://' : 'http://')
+ 'elistva.com/api/script.js?'
+ 'aid=<?php echo $aid ?>&sid=<?php echo $sid ?>';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(rd, s);
})();
</script>
<noscript><p
style="background:url(//elistva.com/api/assets/clear.png?aid=<?php echo $aid ?>&sid=<?php echo $sid ?>)"></p>
</noscript>
<object type="application/x-shockwave-flash"
data="//elistva.com/api/udid.swf?aid=<?php echo $aid ?>&sid=<?php echo $sid ?>"
width="1" height="1">
<param name="movie"
value="//elistva.com/api/udid.swf?aid=<?php echo $aid ?>&sid=<?php echo $sid ?>"/>
</object>
\ No newline at end of file
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package default_default
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<p><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></p>
<?php
/**
* @category OPS
* @package Netresearch_OPS
* @author Thomas Birke <thomas.birke@netresearch.de>
* @author Michael Lühr <michael.luehr@netresearch.de>
* @copyright Copyright (c) 2012 Netresearch GmbH & Co. KG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Netresearch_OPS_Model_Payment_Alias
*
* @author Thomas Birke <thomas.birke@netresearch.de>
* @author Michael Lühr <michael.luehr@netresearch.de>
* @copyright Copyright (c) 2012 Netresearch GmbH & Co. KG
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/* $this instanceof Netresearch_OPS_Block_Info_Alias */
?>
<p><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></p>
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package default_default
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<p><?php echo $this->htmlEscape($this->getMethod()->getTitle() . ' - ' . $this->getMethod()->getOpsBrand($this->getInfo())) ?></p>
<?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?> - <?php echo $this->htmlEscape($this->getMethod()->getOpsBrand($this->getInfo())) ?><br />
<?php echo Mage::helper('payment')->__('Payment ID: %s', $this->htmlEscape($this->getInfo()->getAdditionalInformation('paymentId'))) ?><br/>
\ No newline at end of file
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package default_default
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<p><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></p>
<p><?php echo Mage::helper('ops')->__('You will be redirected to the payment page after the order confirmation.') ?></p>
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package default_default
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
$$$PAYMENT ZONE$$$
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package default_default
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<form name="ops" id="ops_review_form" action="<?php echo $this->getFormAction();?>" method="post">
<?php $formData = $this->getFormData(); ?>
<?php if ($this->hasMissingParams()): ?>
<div id="messages_product_view">
<ul class="messages">
<li class="note-msg">
<ul>
<li><?php echo $this->getQuestion(); ?></li>
</ul>
</li>
</ul>
</div>
<div class="fieldset">
<h2 class="legend"><?php echo Mage::helper('ops')->__('Your details') ?></h2>
<ul class="form-list">
<?php else: ?>
<p class="ops-wait-redirect"><br/><br/><br/><br/><br/><br/><strong><?php echo Mage::helper('ops')->__('Please wait a moment. This page will transfer your data to Ogone payment gateway in a few seconds.'); ?></strong></p>
<?php endif; ?>
<?php if (is_array($formData)): ?>
<fieldset>
<?php foreach ($formData as $name => $value) { ?>
<?php if ($this->hasMissingParams() && in_array($name, $this->getQuestionedFormFields())): ?>
<?php if ($name !== 'CIVILITY' && $name !== 'ECOM_SHIPTO_POSTAL_NAME_PREFIX') : ?>
<label class="required" for="<?php echo($name); ?>"><?php echo Mage::helper('ops')->__($name) ?> <em>*</em></label>
<div class="input-box"><input class="required-entry" id="<?php echo($name); ?>" name="<?php echo($name); ?>" value="<?php echo(htmlentities($value, ENT_COMPAT, 'UTF-8')); ?>" /></div>
<?php endif; ?>
<?php if (($name ==='CIVILITY' || $name == 'ECOM_SHIPTO_POSTAL_NAME_PREFIX')): ?>
<label class="required" for ="<?php echo($name); ?>"><?php echo Mage::helper('ops')->__($name) ?> <em>*</em></label>
<div class="input-box">
<select class="required-entry" id="prefix" name="<?php echo($name); ?>">
<option <?php if ($value == 'Mr'): echo 'selected'; endif; ?> value='Mr' >Mr</option>
<option <?php if ($value == 'Mrs'): echo 'selected'; endif; ?> value='Mrs' >Mrs</option>
</select>
</div>
<?php endif; ?>
<?php else: ?>
<div>
<input type="hidden" name="<?php echo($name); ?>" value="<?php echo(htmlentities($value, ENT_COMPAT, 'UTF-8')); ?>" />
<div>
<?php endif; ?>
<?php }?>
</fieldset>
<?php endif; ?>
<?php if ($this->hasMissingParams()): ?>
</ul>
</div>
<div class="buttons-set">
<p class="required"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
<button class="button" title="OK" type="submit">
<span><span>OK</span></span>
</button>
</div>
<?php endif; ?>
</form>
<script type="text/javascript">
//<![CDATA[
var review = new VarienForm('ops_review_form', '');
<?php if (false == $this->hasMissingParams()): ?>
Event.observe(window, 'load', function() {
review.submit();
});
<?php endif; ?>
//]]>
</script>
<p><strong><?php echo Mage::helper('ops')->__('Please wait a moment. This page will transfer your data to Ogone payment gateway in a few seconds.'); ?></strong></p>
<?php echo $this->getFormData();?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment