|
|||
|
Hallo Zusammen,
habe schon hier im Forum gesucht jdoch nichts gefunden...! Ich aktiviere Paypal und gebe alles ein, im Frinted kann ich es dann auch auswählen -- die Bestellung wird versendet jedoch ohne weiterleitung zu Paypal... wenn ich auf Selected Currency setze kommt folgende fehlermeldung: Fatal error: Call to undefined function: curl_init() in /home/swissmeg/public_html/webshop/includes/modules/payment/paypal.php on line 119 IN DER lINE 119 STEHT : $CH = curl_init(); was mache ich falsch? Grüsse Roger Geändert von rohuegi (17.10.2006 um 00:32 Uhr) |
|
|||
|
kann ich bestätigen! keine ahnung warum, aber nach der bestellung wird nicht auf paypal weitergeleitet. ich bin mir sicher, es hat mal funktioniert???
bitt um hilfe, mein sponsor ist gerade erst abgelaufen! |
|
|||
|
Code:
<?php /* ----------------------------------------------------------------------------------------- $Id: paypal.php 998 2005-07-07 14:18:20Z mz $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(paypal.php,v 1.39 2003/01/29); www.oscommerce.com (c) 2003 nextcommerce (paypal.php,v 1.8 2003/08/24); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ class paypal { var $code, $title, $description, $enabled; function paypal() { global $order; $this->code = 'paypal'; $this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE; $this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false); $this->info = MODULE_PAYMENT_PAYPAL_TEXT_INFO; if ((int) MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->form_action_url = 'https://www.paypal.com/cgi-bin/webscr'; } function update_status() { global $order; if (($this->enabled == true) && ((int) MODULE_PAYMENT_PAYPAL_ZONE > 0)) { $check_flag = false; $check_query = xtc_db_query("select zone_id from ".TABLE_ZONES_TO_GEO_ZONES." where geo_zone_id = '".MODULE_PAYMENT_PAYPAL_ZONE."' and zone_country_id = '".$order->billing['country']['id']."' order by zone_id"); while ($check = xtc_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } function javascript_validation() { return false; } function selection() { return array ('id' => $this->code, 'module' => $this->title, 'description' => $this->info); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { global $order, $xtPrice; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $_SESSION['currency']; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array ('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) { $my_currency = 'EUR'; } if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) { $total = $order->info['total'] + $order->info['tax']; } else { $total = $order->info['total']; } if ($_SESSION['currency'] == $my_currency) { $amount = round($total, $xtPrice->get_decimal_places($my_currency)); $shipping = round($order->info['shipping_cost'], $xtPrice->get_decimal_places($my_currency)); } else { $amount = round($xtPrice->xtcCalculateCurrEx($total, $my_currency), $xtPrice->get_decimal_places($my_currency)); $shipping = round($xtPrice->xtcCalculateCurrEx($order->info['shipping_cost'], $my_currency), $xtPrice->get_decimal_places($my_currency)); } $process_button_string = xtc_draw_hidden_field('cmd', '_xclick').xtc_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID).xtc_draw_hidden_field('item_name', STORE_NAME).xtc_draw_hidden_field('amount', $amount - $shipping).xtc_draw_hidden_field('shipping', $shipping).xtc_draw_hidden_field('currency_code', $my_currency).xtc_draw_hidden_field('return', xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')).xtc_draw_hidden_field('cancel_return', xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); return $process_button_string; } function before_process() { return false; } function after_process() { global $insert_id; if ($this->order_status) xtc_db_query("UPDATE ".TABLE_ORDERS." SET orders_status='".$this->order_status."' WHERE orders_id='".$insert_id."'"); } function output_error() { return false; } function check() { if (!isset ($this->_check)) { $check_query = xtc_db_query("select configuration_value from ".TABLE_CONFIGURATION." where configuration_key = 'MODULE_PAYMENT_PAYPAL_STATUS'"); $this->_check = xtc_db_num_rows($check_query); } return $this->_check; } function install() { xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_PAYMENT_PAYPAL_STATUS', 'True', '6', '3', 'xtc_cfg_select_option(array(\'True\', \'False\'), ', now())"); xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_PAYPAL_ALLOWED', '', '6', '0', now())"); xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_PAYPAL_ID', 'you@yourbusiness.com', '6', '4', now())"); xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value, configuration_group_id, sort_order, set_function, date_added) values ('MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', '6', '6', 'xtc_cfg_select_option(array(\'Selected Currency\',\'Only USD\',\'Only CAD\',\'Only EUR\',\'Only GBP\',\'Only JPY\'), ', now())"); xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value, configuration_group_id, sort_order, date_added) values ('MODULE_PAYMENT_PAYPAL_SORT_ORDER', '0', '6', '0', now())"); xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value, configuration_group_id, sort_order, use_function, set_function, date_added) values ('MODULE_PAYMENT_PAYPAL_ZONE', '0', '6', '2', 'xtc_get_zone_class_title', 'xtc_cfg_pull_down_zone_classes(', now())"); xtc_db_query("insert into ".TABLE_CONFIGURATION." ( configuration_key, configuration_value, configuration_group_id, sort_order, set_function, use_function, date_added) values ('MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', '0', '6', '0', 'xtc_cfg_pull_down_order_statuses(', 'xtc_get_order_status_name', now())"); } function remove() { xtc_db_query("delete from ".TABLE_CONFIGURATION." where configuration_key in ('".implode("', '", $this->keys())."')"); } function keys() { return array ('MODULE_PAYMENT_PAYPAL_STATUS', 'MODULE_PAYMENT_PAYPAL_ALLOWED', 'MODULE_PAYMENT_PAYPAL_ID', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'MODULE_PAYMENT_PAYPAL_ZONE', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER'); } } ?> |
|
|||
|
Hallo,
ich hatte bei einer anderen Geschichte mal eine ähnliche Fehlermeldung. Es ließ sich beheben, indem ich den Provider bat, curl zu aktivieren. Viele Grüße, Angela Wrobel |
![]() |
| Lesezeichen |
| Stichworte |
| paypal, weiterleitung |
| Themen-Optionen | |
| Ansicht | |
|
|