Jump to content

Problème état vide


Recommended Posts

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 by baddark (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...