VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?})",
$champ901, $user->id(), $ref, $champ200, $montant, $champ905, Env::v('comment'));
+ // We check if it is an Xnet payment and then update the related ML.
+ $res = XDB::query('SELECT eid
+ FROM groupex.evenements
+ WHERE paiement_id = {?}', $ref);
+ if ($eid = $res->fetchOneCell()) {
+ $this->load('xnetevents.inc.php');
+ $evt = get_event_detail($eid);
+ subscribe_lists_event(0, $uid, $evt, $montant, true);
+ }
+
/* on genere le mail de confirmation */
$conf_text = str_replace(
array('<prenom>', '<nom>', '<promo>', '<montant>', '<salutation>', '<cher>', 'comment>'),
VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?})",
$no_transaction, $user->id(), $ref, $fullref, $montant, $clef, Env::v('comment'));
+ // We check if it is an Xnet payment and then update the related ML.
+ $res = XDB::query('SELECT eid
+ FROM groupex.evenements
+ WHERE paiement_id = {?}', $ref);
+ if ($eid = $res->fetchOneCell()) {
+ $this->load('xnetevents.inc.php');
+ $evt = get_event_detail($eid);
+ subscribe_lists_event(0, $uid, $evt, $montant, true);
+ }
+
/* on genere le mail de confirmation */
$conf_text = str_replace(array('<prenom>', '<nom>', '<promo>', '<montant>', '<salutation>', '<cher>'),
array($user->firstName(), $user->lastName(), $user->promo(), $montant,