baddark Posted January 17, 2013 Share Posted January 17, 2013 (edited) Bonjour, J'ai un prestashop 1.5.2, avec le module ahc_cmcic installé. Lorsque j'effectue un paiement, son état reste vide dans le back office (et current_state est égale à 0 dans la table ps_orders). La ligne du script devant validé la commande est bien appelé : $ahcs_cmcic30->validateOrder(intval($cart->id), _PS_OS_PAYMENT_, $total, 'Credit card', null, null, $id_currency); Le validateOrder est hérité de la classe classes/PaymentModule.php $cart->id = (id de l'article) _PS_OS_PAYMENT_ = 2 (statut payé) $total = (nombre total) $id_currency = 2 (currerncy €) J'ai vérifié, cette commande est bien éxécuté. Tout me parait pourtant correct ! Cordialement. Edited January 17, 2013 by baddark (see edit history) Link to comment Share on other sites More sharing options...
baddark Posted January 18, 2013 Author Share Posted January 18, 2013 up please Link to comment Share on other sites More sharing options...
baddark Posted January 19, 2013 Author Share Posted January 19, 2013 Bon apparemment, mon module est le module opensource d'euroinformation version 1.04. Je ne dois pas avoir la version pour pestashop 1.5.2, une idée ? :/ Cordialement. Link to comment Share on other sites More sharing options...
JordanBelfort Posted February 4, 2013 Share Posted February 4, 2013 Je cherche aussi la solution donc on pourrait s'entraider, j'ai comparé avec les autres modules de paiement et leur commande utilise: Configuration::get('_PS_OS_PAYMENT_') et non _PS_OS_PAYMENT_ donc à voir... Pour le moment ma ligne est la suivante: $abcd_cmcic30->validateOrder((int)$cart->id, Configuration::get('_PS_OS_PAYMENT_'), $total, 'CB (CIC)', 'N° autorisation : '.$CMCIC_bruteVars['numauto'].' N° Panier : '.$CMCIC_bruteVars['reference'], array(), $id_currency, false, $cart->secure_key); 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