komar62 Posted July 26, 2011 Share Posted July 26, 2011 Bonjour a tous, J'aimerai pouvoir faire quelque chose d'un peu spécial avec un module de paiement (compatible sherlock/LCL), permettant le paiement en 2x. Je m'explique: j'aimerai pouvoir repartir le montant des deux transactions.par exemple payer 70% la premiere fois et 30% la deuxieme. J'ai telecharger le module gratuit tgg atos v2 RC4 qui permet le paiement en plusieurs fois. J'ai bien essayer de modifier le code mais je n'arrive a rien de bien convaincant. Merci d'avance pour les réponses cordialement Marc Desaulty Link to comment Share on other sites More sharing options...
komar62 Posted July 26, 2011 Author Share Posted July 26, 2011 Pour ceux qui en aurait besoin j'ai trouver la solution a mon probleme. fichier tgg_atos.php a partir de la ligne 470. $params = array_merge($params, array( 'capture_mode' => 'PAYMENT_N', //let ATOS know that we want a splitted payment 'capture_day' => $this->_get('INT_'.$namespace.'_DELAY'), 'data' => implode(';', array( 'NB_PAYMENT='.$splitted, 'PERIOD='.$this->_get('INT_'.$namespace.'_SPACING'), 'INITIAL_AMOUNT='.round($atos_amount/$splitted) )) )); il suffit de changer la ligne 'INITIAL_AMOUNT='.round($atos_amount-500) comme ceci: 'INITIAL_AMOUNT='.round($atos_amount-$montant_de_la_deuxième_transaction) Voila j'espere que sa pourra servir a quelqu'un 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