Exemple #1
0
     $body = __("A cash purchase was made", 'eshop') . "\n";
     $body .= "\n" . __("from ", 'eshop') . $ecash->ipn_data['payer_email'] . __(" on ", 'eshop') . date('m/d/Y');
     $body .= __(" at ", 'eshop') . date('g:i A') . "\n\n";
     $body .= __('Details', 'eshop') . ":\n";
     if (isset($array['dbid'])) {
         $body .= get_bloginfo('wpurl') . '/wp-admin/admin.php?page=eshop-orders.php&view=' . $array['dbid'] . "&eshop\n";
     }
     foreach ($ecash->ipn_data as $key => $value) {
         $body .= "\n{$key}: {$value}";
     }
     $body .= "\n\n" . __('Regards, Your friendly automated response.', 'eshop') . "\n\n";
     $headers = eshop_from_address();
     $to = apply_filters('eshop_gateway_details_email', array($cash['email']));
     wp_mail($to, $subject, $body, $headers);
     /* ############### */
     $p = new cash_class();
     if ($eshopoptions['cart_success'] != '') {
         $ilink = add_query_arg('eshopaction', 'success', get_permalink($eshopoptions['cart_success']));
     } else {
         die('<p>' . $derror . '</p>');
     }
     $p->cash_url = $ilink;
     // cash url
     $echoit .= $p->eshop_submit_cash_post($_POST);
     //$p->dump_fields();      // for debugging, output a table of all the fields
     break;
 case 'process':
     // Process and order...
     /****** The order has already gone into the database at this point ******/
     //goes direct to this script as nothing needs showing on screen.
     $p->add_field('shipping_1', eshopShipTaxAmt());
Exemple #2
0
     $body = __("A cash purchase was made", 'eshop') . "\n";
     $body .= "\n" . __("from ", 'eshop') . $ecash->ipn_data['payer_email'] . __(" on ", 'eshop') . date('m/d/Y');
     $body .= __(" at ", 'eshop') . date('g:i A') . "\n\n";
     $body .= __('Details', 'eshop') . ":\n";
     if (isset($array['dbid'])) {
         $body .= get_bloginfo('wpurl') . '/wp-admin/admin.php?page=eshop-orders.php&view=' . $array['dbid'] . "&eshop\n";
     }
     foreach ($ecash->ipn_data as $key => $value) {
         $body .= "\n{$key}: {$value}";
     }
     $body .= "\n\n" . __('Regards, Your friendly automated response.', 'eshop') . "\n\n";
     $headers = eshop_from_address();
     $to = apply_filters('eshop_gateway_details_email', array($cash['email']));
     wp_mail($to, $subject, $body, $headers);
     /* ############### */
     $p = new cash_class();
     if ($eshopoptions['cart_success'] != '') {
         $ilink = add_query_arg('eshopaction', 'success', get_permalink($eshopoptions['cart_success']));
     } else {
         die('<p>' . $derror . '</p>');
     }
     $p->cash_url = $ilink;
     // cash url
     $echoit .= $p->eshop_submit_cash_post($espost);
     //$p->dump_fields();      // for debugging, output a table of all the fields
     break;
 case 'process':
     // Process and order...
     /****** The order has not gone into the database at this point ******/
     //goes direct to this script as nothing needs showing on screen.
     $p->add_field('shipping_1', eshopShipTaxAmt());