14 include(
"../../configuration.inc.php");
21 $checknumber=strtoupper(md5(
vb($_POST[
'merchant_id']).
vb($_POST[
'transaction_id']).strtoupper(md5(
$GLOBALS[
'site_parameters'][
'secret_word'])).
vb($_POST[
'amount']).
vb($_POST[
'currency']).
vb($_POST[
'status'])));
25 $status =
vn($_POST[
'status']);
27 $amount =
vn($_POST[
'amount']);
28 $pay_to_email =
vn($_POST[
'pay_to_email']);
29 if ($pay_to_email ==
$GLOBALS[
'site_parameters'][
'email_moneybookers']) {
35 if (round($r[
'montant'], 2) == round($amount, 2)) {
39 $update_status =
'cancelled';
44 $update_status =
'completed';
49 $update_status =
'pending';
54 $update_status =
'cancelled';
58 $update_status =
'pending';
61 if(in_array($update_status, array(
'being_checked',
'completed'))) {
63 $data[
'MONTANT_CREDIT'] = $amount;
66 if(in_array($update_status, array(
'completed'))) {
77 send_email(
$GLOBALS[
'support'],
'Alerte : problème sur transaction CB commande ' .
$transaction_id .
'',
'Les informations Moneybookers semblent incorrectes ' .
"\n\n" . print_r($_REQUEST,
true));
foreach(array('date1', 'date2', 'type', 'renewals', 'width') as $item) $data
if(empty($_POST)) $checknumber
foreach($_POST as $key=> $value) if(!empty($_POST['item_number'])) elseif(!empty($_POST['custom'])) $q
if(empty($_GET['id'])) $transaction_id
get_filter_site_cond($table_technical_code, $table_alias=null, $use_strict_rights_if_in_admin=false, $specific_site_id=null, $exclude_public_items=false, $admin_force_multisite_if_allowed=false)
Retourne la condition SQL permettant de filtrer les données pour une table.
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query.
if(!defined('IN_PEEL')) send_email($to, $mail_subject= '', $mail_content= '', $template_technical_code=null, $template_tags=null, $format=null, $sender=null, $html_add_structure=true, $html_correct_conformity=false, $html_convert_url_to_links=true, $reply_to=null, $attached_files_infos_array=null, $lang=null, $additional_infos_array=array(), $attachment_not_sent_by_email=false)
Envoi d'un email à un utilisateur.
accounting_insert_transaction($order_id, $technical_code, $data)
Crée une transaction d'encaissement.
fetch_assoc($query_result)
fetch_assoc()
$GLOBALS['page_columns_count']
email_commande($order_id)
email_commande()
fprix($price, $display_currency=false, $currency_code_or_default=null, $convertion_needed_into_currency=true, $currency_rate=null, $display_iso_currency_code=false, $format=true, $force_format_separator=null, $add_rdfa_properties=false, $round_even_if_no_format=false)
fprix formatte le prix donné en le convertissant si nécessaire au préalable et en ajoutant éventuelle...
update_order_payment_status($order_id, $status_or_is_payment_validated, $allow_update_paid_orders=true, $statut_livraison_new=null, $delivery_tracking=null, $no_stock_decrement_already_done=false, $payment_technical_code=null)
Met à jour le status de paiement et/ou de livraison d'une commande, et gère les stocks suivant le sta...