belyce Posted November 21, 2014 Share Posted November 21, 2014 Bonjour, Suite au paiement via payplug, la page de paiement informe un retour boutique, mais la page travaille mais reste sur la page payplug. Si je clique sur lien proposé, cela fonctionne. Est-ce un souci côté payplug ou prestashop ? Pb connu ou non ? Merci pour votre aide ! Link to comment Share on other sites More sharing options...
Manu-41 Posted November 25, 2014 Share Posted November 25, 2014 J'ai rencontré ce souci et prévenu payplug (d'après eux leurs mofule fonctionne très bien). J'ai changé un fichier avec le ftp, et la redirection est accessible. Par contre, j'ai un souci de statut de commande qui ne se fait pas automatiquement. Problème dure depuis Aout (jour le l'inscription). Je cherche... Link to comment Share on other sites More sharing options...
belyce Posted November 25, 2014 Author Share Posted November 25, 2014 Quel fichier as-tu changé par ftp ? Ca m'intéresse évidemment de faire la même manip. Bizarre pour ton statut de commande, car chez moi ça fonctionne bien de ce côté là. J'attends ton info pour le fichier et merci ! Link to comment Share on other sites More sharing options...
Manu-41 Posted November 25, 2014 Share Posted November 25, 2014 il se trouve ici: \payplug\controllers\front/ validation. J'ai mis le fichier de l'ancienne version de payplug. quel version utilise tu? les autorisations que tu as sur le module? Link to comment Share on other sites More sharing options...
belyce Posted November 25, 2014 Author Share Posted November 25, 2014 J'utilise la dernière version, j'ai mis à jour le plugin samedi dernier. Peux-tu me copier le contenu de ce fichier que je compare avec le mien ? Link to comment Share on other sites More sharing options...
Manu-41 Posted November 25, 2014 Share Posted November 25, 2014 <?php/** 2013 PayPlug** 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.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 [email protected] 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 PayPlug SAS* @copyright 2013 PayPlug SAS* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PayPlug SAS*/require_once(dirname(__FILE__).'./../../../../config/config.inc.php');require_once(dirname(__FILE__).'./../../../../header.php');require_once(dirname(__FILE__).'./../../payplug.php');/** Backward compatibility */require(dirname(__FILE__).'/../../backward_compatibility/backward.php');if(version_compare(_PS_VERSION_, '1.5', '<')){ $currency = Currency::getCurrent()->iso_code; $order_confirmation_url = 'order-confirmation.php?';} else{ $context = Context::getContext(); $currency = $context->currency; $order_confirmation_url = 'index.php?controller=order-confirmation&';}if(!isset($_GET['cartid'])) PayPlug::toolsRedirect_for_PS_VERSION('index.php?controller=order&step=1');$cart = new Cart($_GET['cartid']);// If no current cart, redirect to order pageif(!$cart->id) PayPlug::toolsRedirect_for_PS_VERSION('index.php?controller=order&step=1');// If no GET parameter with payment status codeif(!isset($_GET['ps']) || (isset($_GET['ps']) && $_GET['ps'] != 1)) PayPlug::toolsRedirect_for_PS_VERSION('index.php?controller=order&step=1');$payplug = new Payplug();if($cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$payplug->active) PayPlug::toolsRedirect_for_PS_VERSION('index.php?controller=order&step=1');// Check that this payment option is still available in case the customer changed his address just before the end of the checkout processif(!PayPlug::_isActive()) die($payplug->l('This payment method is not available.', 'validation'));$customer = new Customer((int)$cart->id_customer);if(!Validate::isLoadedObject($customer)) PayPlug::toolsRedirect_for_PS_VERSION('index.php?controller=order&step=1');$total = (float)($cart->getOrderTotal(true, Cart::BOTH));$order = new Order();$orderId = $order->getOrderByCartId($cart->id);if(!$orderId){ $payplug->validateOrder($cart->id, Configuration::get('PAYPLUG_ORDER_STATE_WAITING'), $total, $payplug->displayName, NULL, array(), (int)$currency->id, false, $customer->secure_key); $order = new Order($payplug->currentOrder);}else{ // Ipn has been received $order = new Order($orderId);}PayPlug::toolsRedirect_for_PS_VERSION($order_confirmation_url.'id_cart='.$cart->id.'&id_module='.$payplug->id.'&id_order='.$order->id.'&key='.$customer->secure_key); Link to comment Share on other sites More sharing options...
belyce Posted November 25, 2014 Author Share Posted November 25, 2014 (edited) A priori ça se passe à la fin du fichier dans la version actuelle j'ai : $link = $order_confirmation_url.'id_cart='.$cart->id.'&id_module='.$payplug->id.'&id_order='.$order->id.'&key='.$customer->secure_key;Payplug::redirectForVersion($link); Dans l'ancienne : PayPlug::toolsRedirect_for_PS_VERSION($order_confirmation_url.'id_cart='.$cart->id.'&id_module='.$payplug->id.'&id_order='.$order->id.'&key='.$customer->secure_key); Je ne sais pas si je dois le modifier juste à la fin, ça ne m'inspire pas trop en fait de faire joujou avec le module de paiement. Edited November 25, 2014 by belyce (see edit history) Link to comment Share on other sites More sharing options...
Manu-41 Posted November 25, 2014 Share Posted November 25, 2014 moi j'ai remplacé le fichier, et cela fonctionne. fait une sauvegarde de ton ancien fichier. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now