Exemplo n.º 1
0
* 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@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    Dotpay Team <*****@*****.**>
*  @copyright Dotpay
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*
*/
require_once mydirname(__DIR__, 3) . '/models/Config.php';
/**
 * Abstract controller for other Dotpay plugin controllers
 */
abstract class DotpayController extends ModuleFrontController
{
    /**
     *
     * @var DotpayConfig Dotpay configuration 
     */
    protected $config;
    /**
     *
     * @var Customer Object with customer data
     */
    protected $customer;
Exemplo n.º 2
0
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    Dotpay Team <*****@*****.**>
*  @copyright Dotpay
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*
*/
require_once mydirname(__DIR__, 2) . '/models/Config.php';
require_once mydirname(__DIR__, 2) . '/controllers/front/dotpay.php';
require_once mydirname(__DIR__, 2) . '/classes/SellerApi.php';
abstract class DotpayRegisterOrder
{
    /**
     *
     * @var DotpayController Controller object
     */
    private static $parent;
    /**
     *
     * @var DotpayConfig DotpayConfig object
     */
    private static $config;
    /**
     *
     * @var string Target url for Register Order
Exemplo n.º 3
0
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    Dotpay Team <*****@*****.**>
*  @copyright Dotpay
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*
*/
require_once __DIR__ . '/dotpay.php';
require_once mydirname(__DIR__, 3) . '/classes/RegisterOrder.php';
/**
 * Controller for display confirm from Register Order
 */
class dotpayconfirmModuleFrontController extends DotpayController
{
    /**
     * Display payment instruction for cash or transfer payments
     */
    public function initContent()
    {
        $this->display_column_left = false;
        parent::initContent();
        $errorMessage = NULL;
        if (Tools::getValue('order_id')) {
            $this->context->cart = Cart::getCartByOrderId(Tools::getValue('order_id'));
Exemplo n.º 4
0
* 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@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    Dotpay Team <*****@*****.**>
*  @copyright Dotpay
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*
*/
require_once mydirname(__DIR__, 2) . '/vendor/simple_html_dom.php';
/**
 * Model of payment instruction
 */
class DotpayInstruction extends ObjectModel
{
    /**
     *
     * @var inte Instruction id
     */
    public $instruction_id;
    /**
     *
     * @var int Id of order, which is connected with instruction
     */
    public $order_id;
Exemplo n.º 5
0
 /**
  * Copies status image to Prestashop system dir
  * @param type $source
  * @param type $dest
  * @return bool
  */
 private function copyStatusImage($source, $dest)
 {
     $target = mydirname(__DIR__, 3);
     return copy(__DIR__ . '/img/' . $source . '.gif', $target . '/img/os/' . $dest . '.gif');
 }
Exemplo n.º 6
0
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER 
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    Dotpay Team <*****@*****.**>
*  @copyright Dotpay
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*
*/
require_once mydirname(__DIR__, 2) . '/models/Config.php';
require_once mydirname(__DIR__, 2) . '/controllers/front/dotpay.php';
require_once mydirname(__DIR__, 2) . '/classes/Curl.php';
/**
 * Interface and common functionality of the API.
 */
abstract class DotpayApi
{
    /**
     *
     * @var int Number of One Click card channel
     */
    public static $ocChannel = 248;
    /**
     *
     * @var int Number of card channel for separated currencies
     */
    public static $pvChannel = 248;