Hydrox Posted December 16, 2003 Posted December 16, 2003 i've setup paypal to be my only payment option.. Now on the IPN what do file do i point paypal to... i thought it was the paypal.php file in the modules directory, but when i click process on the page to process an order i'm getting this 404 Not Found The requested URL /xclick/[email protected]&item_name=The Whiteline Shop&amount=3,652.84&shipping=3.50&return=http://whitelineperformance.com/ipw-web/ecommerce/os/catalog/checkout_process.php?paypal_return=paypal%7C0%7C3.5%7CBest%2BWay%7C%26 was not found on this server but when i do just www.paypal.com/xclick/[email protected] it goes to a blank paypal page as it should.. something wrong with the above coding? let me know.. thanks. someone help me out i'll throw ya a few bucks.. thanks.
Hydrox Posted December 16, 2003 Author Posted December 16, 2003 This is my paypal.php file <? $payment_code = 'paypal'; $payment_description = TEXT_PAYPAL; $payment_enabled = PAYMENT_SUPPORT_PAYPAL; if ($payment_action == 'PM_CONFIRMATION' && $payment_enabled) { $paypal_return = urlencode($HTTP_POST_VARS['payment'] . '|' . $HTTP_POST_VARS['sendto'] . '|' . $shipping_cost . '|' . urlencode($shipping_method) . '|' . urlencode($comments) . '&' . SID); $checkout_form_action = 'https://secure.paypal.com/xclick/business=' . rawurlencode(PAYPAL_ID) . '&item_name=' . rawurlencode(STORE_NAME) . '&amount=' . number_format(($total_cost + $total_tax),2) . '&shipping=' . number_format($shipping_cost, 2) . '&return=' . urlencode(HTTP_SERVER . DIR_WS_CATALOG . FILENAME_CHECKOUT_PROCESS . '?paypal_return=' . $paypal_return); } elseif ($payment_action == 'PM_BEFORE_PROCESS' && $payment_enabled) { if ($HTTP_GET_VARS['paypal_return']) { $arg = urldecode($HTTP_GET_VARS['paypal_return']); $args = explode('|', $arg); $payment = $args[0]; $sendto = $args[1]; $shipping_cost = $args[2]; $shipping_method = $args[3]; $comments = $args[4]; } } elseif ($payment_action == 'PM_AFTER_PROCESS' && $payment_enabled) { header('Location: ' . tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL')); } elseif ($payment_action == 'PM_CHECK') { $check = tep_db_query("select configuration_value from configuration where configuration_key = 'PAYMENT_SUPPORT_PAYPAL'"); $check = tep_db_num_rows($check) + 1; } elseif ($payment_action == 'PM_INSTALL') { tep_db_query("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Allow PayPal', 'PAYMENT_SUPPORT_PAYPAL', '1', 'Do you want to accept PayPal payments?', '6', '3', now())"); tep_db_query("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('PayPal ID', 'PAYPAL_ID', '[email protected]', 'Your buisness ID at PayPal. Usually the email address you signed up with. You can create a free PayPal account at http://www.paypal.com.', '6', '4', now())"); } elseif ($payment_action == 'PM_REMOVE') { tep_db_query("DELETE FROM configuration WHERE configuration_key = 'PAYMENT_SUPPORT_PAYPAL'"); tep_db_query("DELETE FROM configuration WHERE configuration_key = 'PAYPAL_ID'"); } ?>
Hydrox Posted December 17, 2003 Author Posted December 17, 2003 okay i have the paypal page loading when u purchase a product but the address field is huge, and it's just the main entry to paypal.. any idea's yet?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.