Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
dynamoeffects

PayPal WPP Direct Payments & Express Checkout Support

Recommended Posts

I am having a problem with the check out process, not sure if it has anything to do with the PayPal WPP Direct Payments contribution I installed. I have searched all over the forum to help find a solutions, with no luck. My problem is when a new customer selects a product then signs up for a account, then when they go to checkout_shipping, there is no shipping information on the page. If they go in and change their shipping info it will work and give them the shipping options and they can check out sucessfully. This is only happening to new customers. Does anyone know what could be causing this? I have used beyond & compare to make sure everything is installed correct, and have went over the install instructions several times with no luck.

 

Thanx,

Donna

Share this post


Link to post
Share on other sites
Guest

I have a problem following the directions of editing checkout_shipping.php.

 

The instructions say to FIND the following lines around line 213:

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

 

Well, I don't have that. The following is what I have in that general area:

 

			<tr><td>

<?php tep_draw_heading_top();?>

<?php new contentBoxHeading_ProdNew($info_box_contents);?>

<?php tep_draw_heading_top_1();?>

     <table cellpadding="0" cellspacing="0" border="0" width="100%">
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
		  </tr>
		  <tr>
			<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
			  <tr>
				<td class="main"><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td>
			  </tr>
			</table></td>
		  </tr>
		  <tr>
			<td><table border="0" width="100%" cellspacing="1" cellpadding="2">
			  <tr>
				<td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="bor">
				  <tr>
					<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> 
					<td class="main" width="100%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_DESTINATION . '<br><br><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>

				  </tr>

 

 

What do I do in this case?

 

 

 

 

Also, it says to FIND the following line around line 431:

 

<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>

 

But I have the following. What area do I edit?

 

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
			  <tr>
				<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
				  <tr>
					<td width="50%" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
					<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
				  </tr>
				</table></td>
				<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
				<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
				<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
				  <tr>
					<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
					<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
				  </tr>
				</table></td>

 

 

 

 

Also, I can't find where to make the changes in includes/header.php . Here is my code:

 

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
     $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
   }
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
     $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
     if (!is_dir(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
     } elseif (!is_writeable(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
     }
   }
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
     $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
   }
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
     $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
   }
 }

 if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
 }
?>
<!-- start -->
<table cellpadding="0" cellspacing="0" border="0"><tr><td style="background:url(images/header_bg.jpg) left top repeat-x #666666;">
<table class="main" align="center" cellpadding="0" cellspacing="0" border="0">
 <tr>
     <td class="main_tab">  
     	<table cellpadding="0" cellspacing="0" border="0">
         <tr>
             <td><!-- HEAD BEGIN -->    	
                   <table cellpadding="0" cellspacing="0" border="0">
                     <tr>
                         <td>
                           <table class="menu" cellpadding="0" cellspacing="0" border="0">
                             <tr>
                                 <td><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image_button('m1.jpg')?></a><br />
                                 <a href="<?php echo tep_href_link('products_new.php')?>"><?php echo tep_image_button('m2.jpg')?></a><br />
                                 <a href="<?php echo tep_href_link('specials.php')?>"><?php echo tep_image_button('m3.jpg')?></a><br />
                                 <a href="<?php echo tep_href_link('account.php')?>"><?php echo tep_image_button('m4.jpg')?></a><br />
                                 <a href="<?php echo tep_href_link('contact_us.php')?>"><?php echo tep_image_button('m5.jpg')?></a></td>
                             </tr>
                           </table></td>
                         <td class="logo"></td>
                     </tr>
                   </table>   
                   <table class="nav" cellpadding="0" cellspacing="0" border="0">
                     <tr>
                         <td class="left"><?php echo tep_draw_separator('spacer.gif', '16', '1'); ?></td>
                         <td class="cont" style="width:34%; padding-right:15px;">
                         </td>
                         <td class="line"><?php echo tep_draw_separator('spacer.gif', '2', '1'); ?></td>
                         <td class="cont" style="width:31%;">
                         </td>
                         <td class="line"><?php echo tep_draw_separator('spacer.gif', '2', '1'); ?></td>
                         <td class="cont" style="width:32%; padding-left:10px;">
                         </td>
                         <td class="right"><?php echo tep_draw_separator('spacer.gif', '17', '1'); ?></td>
                     </tr>
                   </table>     

<!-- end -->
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
 </tr>
</table>
<?php
 }
?>
<!-- start -->
        		</td>
         </tr>
         <tr>
             <td><!-- CONTENT BEGIN -->
             	  	<table class="content" cellpadding="0" cellspacing="0" border="0">
                     <tr>
                         <td class="right_bg">
<!-- end -->

<?php 
define(MAX_DESCR_1,'58');
define(MAX_DESCR_BESTS,'19');
define(MAX_DESCR_REVIEWS,'59');
?>

 

 

 

 

Any help?

Share this post


Link to post
Share on other sites

Can anyone tell me how to remove the link for "Checkout with Paypal" from the bottom of the shopping cart page? I've looked in the .../shoppingcart.php file but I can't locate the link. When customers use this link, it skips the shipping area and actually sometimes misses the payment section on my site. If I can remove it, it'll force the customer to go through the entire process.

 

Thanks!!!

Share this post


Link to post
Share on other sites

Thats part of express checkout, if you use WPP it is a requirement to have this.

 

if you dont have WPP then simply remove paypal express from your payment modules

Share this post


Link to post
Share on other sites
Can anyone tell me how to remove the link for "Checkout with Paypal" from the bottom of the shopping cart page? I've looked in the .../shoppingcart.php file but I can't locate the link. When customers use this link, it skips the shipping area and actually sometimes misses the payment section on my site. If I can remove it, it'll force the customer to go through the entire process.

 

Thanks!!!

 

First, what version of osC are you using? If RC2a and you have enabled the PayPal Express Checkout payment module included with that release, you will get this behavior.

 

PayPal Express Checkout is supposed to bypass the normal osC checkout process, so it's "working as designed". After the user logs in and selects a delivery address at PayPal, the checkout should resume at the confirmation page.

 

--Glen

Share this post


Link to post
Share on other sites

Hello and thank you for a great module! I have everything installed and set up on a testing server and am playing in the paypal sandbox. Direct Payments seem to be working fine. I have an issue with Express Checkout. The flow is all good, redirect to paypal login and redirect back to checkout_shipping. The problem comes when continuing on to checkout_confirmation - the delivery and billing addresses both come out blank (with error messages - htmlspecialchars expecting a string). Confirming the order gives a paypal error response saying shipping address country is missing. Does anyone have any ideas where to start looking into this? Why would billing and shipping addresses go off on a walkabout like that? This oscommerce installation has some customizations, I'm not looking for anyone to pinpoint this for me, just hoping for any helpful pointers/suggestions. I am at best an intermediate php/oscommerce developer. Thanks in advance!

 

ps one odd thing I noticed - for credit card expiration date validation with Direct Pay, it seems to pass if you get EITHER the month OR the year correct, it only fails if both are incorrect. Not a huge issue, but seems a little odd.

Share this post


Link to post
Share on other sites
Hello and thank you for a great module! I have everything installed and set up on a testing server and am playing in the paypal sandbox. Direct Payments seem to be working fine. I have an issue with Express Checkout. The flow is all good, redirect to paypal login and redirect back to checkout_shipping. The problem comes when continuing on to checkout_confirmation - the delivery and billing addresses both come out blank (with error messages - htmlspecialchars expecting a string). Confirming the order gives a paypal error response saying shipping address country is missing. Does anyone have any ideas where to start looking into this? Why would billing and shipping addresses go off on a walkabout like that? This oscommerce installation has some customizations, I'm not looking for anyone to pinpoint this for me, just hoping for any helpful pointers/suggestions. I am at best an intermediate php/oscommerce developer. Thanks in advance!

 

ps one odd thing I noticed - for credit card expiration date validation with Direct Pay, it seems to pass if you get EITHER the month OR the year correct, it only fails if both are incorrect. Not a huge issue, but seems a little odd.

 

Do you have SSL enabled for the checkout flow? PayPal will not return address information to an http address; you must use https.

 

Regarding expiration dates, WPP uses the osCommerce cc_validation class to validate expiration dates, but only for proper format and to ensure that the expiration date is in the future. If the date is sent to PayPal and fails with a PayPal error code, it may be a sandbox limitation. Not unusual.

 

--Glen

Share this post


Link to post
Share on other sites
Do you have SSL enabled for the checkout flow? PayPal will not return address information to an http address; you must use https.

 

No I do not :-( This is an internal testing server and nobody has bothered to set up https on it (or mail! fun!). I can figure something out though. Thank you so much for the quick and helpful reply! I'm so glad it's that simple!

 

Regarding expiration dates, WPP uses the osCommerce cc_validation class to validate expiration dates, but only for proper format and to ensure that the expiration date is in the future. If the date is sent to PayPal and fails with a PayPal error code, it may be a sandbox limitation. Not unusual.

 

It's Paypal, and the opposite of a limitation. But it's just the sandbox, so I'm not bothered. :-)

 

Thanks again!

Share this post


Link to post
Share on other sites

Is anyone else running into an "Order Total Discrepancy"? I triple checked the install and everything is fine. Any help is appreciated.

 

Item Name: XXXX

Quantity: 12

Total: $47.40 USD

 

Item Name: Discount Coupon (5% off)

Quantity: 1

Total: -$2.37 USD

 

Item Name: Order Total Discrepancy

Item Number: -

Quantity: 1

Total: $2.37 USD

 

It appears that the discount should be applied to the product price and not being passed to PayPal as a product. This is somewhat urgent and any help will be appreciated.

Share this post


Link to post
Share on other sites

Have just added this module and am having a few problems.

 

On adding and modifying at Step 12 includes/header.php

 

I cannot find the line around 64

 

My page code is

 

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
     $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
   }
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
     $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
     if (!is_dir(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
     } elseif (!is_writeable(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
     }
   }
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
     $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
   }
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
     $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
   }
 }

 if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
 }
?>
<center>
<table border="0" width="732" height="0" cellspacing="0" cellpadding="0">
 <tr>
 	<td colspan="3" height="20"> </td>
 </tr>
 <tr>
 	<td width="2" height="65"><img src="images/left_header_corner.gif" width="2" height="65" alt="" /></td>
   <td width="728" height="55" style="background:url(images/header_bg.gif) repeat-x">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
		<tr>
		 <td width="290" height="80" style="padding-left:0px; " align="left"><img src="images/logo.gif" width="195" height="80" alt="" border="0" /></td> 
			<td width="120" height="65" align="left">

			 <ul class="topmenu">
 	<li><a href="<?php echo tep_href_link(FILENAME_ABOUT_US) ?>" class="atopmenu">About Us</a></li>
<li><a href="<?php echo tep_href_link(FILENAME_CONTACT_US) ?>" class="atopmenu">Contact us</a></li>
<li><a href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH) ?>" class="atopmenu">Advanced Search</a></li>
 </ul>
				</td>
			<td width="120" height="65" align="left">
 <ul class="topmenu">
 	<li><a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT) ?>" class="atopmenu">Register</a></li>
<li><a href="<?php echo tep_href_link(FILENAME_LOGIN) ?>" class="atopmenu">Login</a></li>
<li><a href="<?php echo tep_href_link('logoff.php') ?>" class="atopmenu">Log out</a></li>
 </ul>
			</td>
			<td width="188" height="65" align="left"><?php require(DIR_WS_BOXES . 'shopping_cart.php'); ?></td>
		</tr>

	</table>
</td>
<td width="2" height="65"><img src="images/right_header_corner.gif" width="2" height="65" alt="" /></td>
 </tr>
</table>
<table border="0" width="732" cellspacing="0" cellpadding="0" height="198" bgcolor="#FFFFFF" style="padding-bottom:3px; padding-top:12px; ">
 <tr>
 	<td height="198" align="center">
	<table width="716" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="173" height="37" style="background:url(images/lang_bg.gif) repeat-x">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
					<tr>
						<td width="3"><img src="images/left_lang_corner.gif" width="3" height="37" /></td>
						<td width="153" style="padding-left:10px; padding-top:6px;" valign="top"><?php  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
									    include(DIR_WS_BOXES . 'languages.php');} ?></td>
						<td width="17"><img src="images/right_lang_corner.gif" width="17" height="37" /></td>
					</tr>
					<tr>
						<td colspan="3" width="173"  height="121" background="images/search_bg.jpg" valign="top">
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td height="60">	<?php
			if ((USE_CACHE == 'true') && empty($SID)) {
   echo tep_cache_manufacturers_box();
 } else {
   include(DIR_WS_BOXES . 'manufacturers.php');
 }?>
 					</td>
				</tr>
				<tr>
					<td><?php  require(DIR_WS_BOXES . 'search.php'); ?></td>
				</tr>
			</table>	
			</td>
		</tr>
		<tr>
			<td colspan="3" width="173" height="50" style="padding-top:3px; ">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" background="images/cur_bg.gif">
					<tr>
						<td width="3"><img src="images/left_cur_corner.gif" width="3" height="50" alt="" /></td>
						<td width="167"><?php   if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
  										    include(DIR_WS_BOXES . 'currencies.php');
																				  } ?></td>
						<td width="3"><img src="images/right_cur_corner.gif" width="3" height="50" alt="" /></td>
					</tr>
				</table>
			</td>
		</tr>

				</table>
			</td>
			<td width="543" valign="top">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
					<tr>
						<td colspan="2" width="543" height="56" background="images/menu_bg.gif">
							<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
								<tr>
									<td width="5" height="56"><img src="images/left_menu_corner.gif" width="5" height="56" alt="" /></td>
									<td width="100%" height="56"><?php  require(DIR_WS_BOXES . 'menu.php'); ?></td>
									<td width="5" height="56"><img src="images/right_menu_corner.gif" width="5" height="56" /></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td width="393" height="154"><a href="<?php echo 'specials.php'; ?>"><img src="images/index_header.gif" width="383" height="148" border="0" style="margin:6px 5px 0px 5px; " alt="" /></a></td>
						<td width="150" style="padding-top:6px; " valign="top"><?php require(DIR_WS_BOXES . 'whats_new.php'); ?></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</td>
 </tr>

</table>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
 </tr>
</table>
<?php
 }
?>

 

according to the instructions i need to find this line

 

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td>

 

and replace with

 

<?php

//---PayPal WPP Modification START ---//

$show_user_options = tep_paypal_wpp_show_user_options();

?>

<td align="right" class="headerNavigation">

<?php if ($show_user_options) { ?>

<a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> |

<?php } ?>

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> |

<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> |

<a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

</td>

<?php //---PayPal WPP Modification END ---// ?>

 

Any help would be appreciate.

 

I have activated the payment module at it all is there - but it declines all cards and on clicking for express payments it takes you to paypal, can log into paypal account but when you click on pay - it just returns to the site showing an empty shopping cart and no money taken!

 

Thanks in anticipation.

Share this post


Link to post
Share on other sites

I am using the UK version of this mod, but there is no "American Express" option in the combobox.

 

Any ideas on how to get around this?

Share this post


Link to post
Share on other sites

Here's a simple question. :)

 

I am using OSC RC2a which came with WPP and Express. But I want to use this contrib. My question is, do I use the Installation instructions or the Upgrading instructions from the Read Me file? I'm assuming the Installation but I hate to assume.

 

Thanks!

Share this post


Link to post
Share on other sites
Here's a simple question. :)

 

I am using OSC RC2a which came with WPP and Express. But I want to use this contrib. My question is, do I use the Installation instructions or the Upgrading instructions from the Read Me file? I'm assuming the Installation but I hate to assume.

 

Thanks!

 

Use the installation instructions. The upgrading instructions are written for users of previous versions of this contribution.

 

--Glen

Share this post


Link to post
Share on other sites

Before I set this up I want to be sure that my config files are correct (I have a feeling they're not and Brian seemed really knowledgeable). Can someone look at these and tell me how they should appear? I have a shared SSL.

 

Thanks!

 

 

incl/config

 

  define('HTTP_SERVER', 'http://itsokaytoshowoff.com');
 define('HTTPS_SERVER', 'https://secure2.securewebexchange.com/itsokaytoshowoff.com');
 define('ENABLE_SSL', 'true');
 define('HTTP_COOKIE_DOMAIN', 'itsokaytoshowoff.com');
 define('HTTPS_COOKIE_DOMAIN', 'secure2.securewebexchange.com/itsokaytoshowoff.com');
 define('HTTP_COOKIE_PATH', '/products/catalog/');
 define('HTTPS_COOKIE_PATH', '/products/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/products/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/products/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 //define('DIR_FS_CATALOG', '/services/webpages/i/t/itsokaytoshowoff.com/public/products/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

admin/incl

 

  define('HTTP_SERVER', 'https://secure2.securewebexchange.com/itsokaytoshowoff.com');
 define('HTTP_CATALOG_SERVER', 'http://itsokaytoshowoff.com');
 define('HTTPS_CATALOG_SERVER', 'https://secure2.securewebexchange.com/itsokaytoshowoff.com');
 define('ENABLE_SSL_CATALOG', 'true');
 define('DIR_FS_DOCUMENT_ROOT', '/services/webpages/i/t/itsokaytoshowoff.com/public/');
 define('DIR_WS_ADMIN', '/products/catalog/admin/');
 define('DIR_FS_ADMIN', '/services/webpages/i/t/itsokaytoshowoff.com/public/products/catalog/admin/');
 define('DIR_WS_CATALOG', '/products/catalog/');
 define('DIR_FS_CATALOG', '/services/webpages/i/t/itsokaytoshowoff.com/public/products/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Share this post


Link to post
Share on other sites

I just installed the module. In Sandbox mode, I placed an item in my cart (as a guest), hit the Paypal button at the bottom of the page, and it took me to Paypal. I signed in (with a sandbox user), chose the payment method and hit continue and it took me to an empty shopping cart on my site. Also, if I hit 'continue' from there it takes me to the home page with the item in my cart again.

 

What have I done wrong?

 

What do I use as an IPN URL in my Paypal/Profile?

 

Also, can anyone check my config files in my previous post?

 

Thanks!

Share this post


Link to post
Share on other sites

Ok, I'm having all kinds of issues with this module and I'm at my wits end. Lets see if anyone here can help, I would really appreciate it.

 

I am Running

Ver: paypal_wpp_1.0.2

Php 5 on an Apache Shared Server

 

My Diagnostics:

Basic Tests

Using at least PHP 4.3.0? Yes

Does your store have an SSL certificate installed and working? Yes

Is cURL installed? Yes

Does cURL work? (Simple HTTPS test) Yes

API Certificate installed? Yes

API Certificate directory protected? Yes

API Username in place? Yes

API Password in place? Yes

Database update in place? Yes

Payment class modifications in place? Yes

Bug in checkout_process.php fixed? [Read More] Yes

XML Document "doDirectPayment.xml" exists? Yes

XML Document "doExpressCheckout.xml" exists? Yes

XML Document "getExpressCheckoutDetails.xml" exists? Yes

XML Document "setExpressCheckout.xml" exists? Yes

XML Document "transactionSearch.xml" exists? Yes

XML Document "doCapture.xml" exists? Yes

XML Document "getTransactionDetails.xml" exists? Yes

XML Document "refundTransaction.xml" exists? Yes

Advanced Diagnostics

Able to connect to PayPal through cURL? Yes

Received a valid response? Yes

Did PayPal respond without errors? (If not, errors are below) No

Internal Error (10001)

Internal Error

 

Ok,

I am getting the same errors whether it's a live certificate or sandbox. I did read that PayPal has to help the Internal Error (1001), I will submit a ticket for that. But what really is bugging me and it might just be related to the internal error is that I keep getting two warning of files missing that I KNOW are there.

 

When I click on the Express Checkout Button I get:

PayPal WPP installation incomplete! There should be XML files located in /includes/wpp_xml/ !
(setExpressCheckout.xml)

 

And when I go to the orders page in the admin I get:

Warning: include(home/xxx/public_html/includes/configure.php) [function.include]: failed to open stream: No such file or directory in /home/xxx/public_html/admin/orders.php on line 16

Warning: include() [function.include]: Failed opening 'home/xxx/public_html/includes/configure.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/admin/orders.php on line 16

 

I have quadruple checked and those files are where they are supposed to be, why the heck are these errors coming up?

 

Again, any help would be awesome. Thanks in advance. :rolleyes:

Edited by PropioWeb

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Share this post


Link to post
Share on other sites

Been using the contribution and technically everything is working fine except when we refund a payment OsC always returns the message REFUND FAILED but actually it has refunded. Secondly I have updated all the references from SWITCH to MAESTRO except in the dropdown box on the payment page - hunted everywhere and just cant find it.

 

Any pointers would be helpful...Thanks.

Share this post


Link to post
Share on other sites
Guest

Hi

 

I too am getting the order total discrepancy error on a UK store with no voucher/coupon contribs installed. My guess is that this is a calculation error in the paypal_wpp module and its something to do with the following code:-

	  $currency_value = $currencies->get_value($this->wpp_get_currency());

  $order_info['PAYPAL_ORDER_TOTAL'] = number_format($order_total['ot_total'] * $currency_value, 2, '.', '');
  $this->total_amount = $order_info['PAYPAL_ORDER_TOTAL'];

  $order_info['PAYPAL_ORDER_DESCRIPTION'] = 'Order placed on ' . date("F j, Y, g:i a") . ' by ' . $order->customer['firstname'] . ' ' . $order->customer['lastname'] . ' (ID: ' . $_SESSION['customer_id'] . ')';
  $order_info['PAYPAL_CUSTOM'] = 'Phone: ' . $order->customer['telephone'] . ' -- Email: ' . $order->customer['email_address'];

  //The shipping total must be under $10,000.  I've removed the check that would
  //set the shipping total at $10,000 if it was over, but that didn't make any sense
  //as the totals would be off, causing other errors.  Just don't ship anything that'll cost more than $10k
  $order_info['PAYPAL_SHIPPING_TOTAL'] = round($order_total['ot_shipping'] * $currency_value, 2);
  $order_info['PAYPAL_HANDLING_TOTAL'] = '';
  $order_info['PAYPAL_TAX_TOTAL'] = round($order_total['ot_tax'] * $currency_value, 2);

  $order_total_check = $order_info['PAYPAL_ORDER_TOTAL'] - $order_info['PAYPAL_SHIPPING_TOTAL'] - $order_info['PAYPAL_HANDLING_TOTAL'] - $order_info['PAYPAL_TAX_TOTAL'];

  $pdi = $this->wpp_generate_PDI($order_total_check);
  $order_info['PAYPAL_ITEM_TOTAL'] = $pdi[0];
  $order_info['PAYMENT_DETAILS_ITEM'] = $pdi[1];

Can anyone help or am I barking up the wrong tree? shipping should be taxed and I dont think it is

Share this post


Link to post
Share on other sites
Guest
Hi

 

I too am getting the order total discrepancy error on a UK store with no voucher/coupon contribs installed. My guess is that this is a calculation error in the paypal_wpp module and its something to do with the following code:-

	  $currency_value = $currencies->get_value($this->wpp_get_currency());

  $order_info['PAYPAL_ORDER_TOTAL'] = number_format($order_total['ot_total'] * $currency_value, 2, '.', '');
  $this->total_amount = $order_info['PAYPAL_ORDER_TOTAL'];

  $order_info['PAYPAL_ORDER_DESCRIPTION'] = 'Order placed on ' . date("F j, Y, g:i a") . ' by ' . $order->customer['firstname'] . ' ' . $order->customer['lastname'] . ' (ID: ' . $_SESSION['customer_id'] . ')';
  $order_info['PAYPAL_CUSTOM'] = 'Phone: ' . $order->customer['telephone'] . ' -- Email: ' . $order->customer['email_address'];

  //The shipping total must be under $10,000.  I've removed the check that would
  //set the shipping total at $10,000 if it was over, but that didn't make any sense
  //as the totals would be off, causing other errors.  Just don't ship anything that'll cost more than $10k
  $order_info['PAYPAL_SHIPPING_TOTAL'] = round($order_total['ot_shipping'] * $currency_value, 2);
  $order_info['PAYPAL_HANDLING_TOTAL'] = '';
  $order_info['PAYPAL_TAX_TOTAL'] = round($order_total['ot_tax'] * $currency_value, 2);

  $order_total_check = $order_info['PAYPAL_ORDER_TOTAL'] - $order_info['PAYPAL_SHIPPING_TOTAL'] - $order_info['PAYPAL_HANDLING_TOTAL'] - $order_info['PAYPAL_TAX_TOTAL'];

  $pdi = $this->wpp_generate_PDI($order_total_check);
  $order_info['PAYPAL_ITEM_TOTAL'] = $pdi[0];
  $order_info['PAYMENT_DETAILS_ITEM'] = $pdi[1];

Can anyone help or am I barking up the wrong tree? shipping should be taxed and I dont think it is

ok i figured out that to do this you need to modify the following line in cart/includes/modules/payment/paypal_wpp.php from:-

	  $order_info['PAYPAL_SHIPPING_TOTAL'] = round($order_total['ot_shipping'] * $currency_value, 2);

to:-

	  $taxcalc = (($order_total['ot_shipping'] / 115)*15);
  $order_info['PAYPAL_SHIPPING_TOTAL'] = round($order_total['ot_shipping'] - $taxcalc * $currency_value, 2);

This assumes you only sell to the UK (or that you only enable this module for orders in the UK) and that the vat value is 15% which as we know changes. not figured out how to set this up for international customers, but will do soon.

Share this post


Link to post
Share on other sites
Guest

Could i just do:-

	  if ($order_total['ot_tax'] > 0) {
  $taxcalc = (($order_total['ot_shipping'] / 115)*15);
  } else {
  $taxcalc = 0; }
  $order_info['PAYPAL_SHIPPING_TOTAL'] = round($order_total['ot_shipping'] - $taxcalc * $currency_value, 2);

I would have to change it when/if VAT changed again, but would that work?

Share this post


Link to post
Share on other sites

I assume that because you are now able to turn off paypal express in the admin, PayPal no longer requires that button on the pages. If so, is there a way to install this module without all the added functionality. We just want it to process the credit cards. That's it, no express checkout needed.

 

I thought I could get it to work by just making the core changes said in the instruction, but for some reason I do not see the Credit Card fields on the payment page. See below. I saw it for one transaction then it disappeared.

 

1229101775-clip-21kb.png

 

Can you guys login and go through the checkout and let me know if you see the fields? There's already something in the cart to test with.

The shop is live so please no orders. The cart is also heavily modified so if it asks for your zipcode just enter it. It's part of the modification.

 

newenglandspirits.com/login.php

user: web@stevens470.com

pw: 123456

Edited by PropioWeb

Samuel Mateo, Jr.

osC 2.2 MS2

Installed Mods:

WYSIWYG HTMLArea 1.7 | Basic Template System 1.0 | osC-Affiliate | OSC-SupportTicket

Featured Products 1.3 | LoginBox 5.2 | LatestNews 1.1.3 | Extras for IE

Share this post


Link to post
Share on other sites
I assume that because you are now able to turn off paypal express in the admin, PayPal no longer requires that button on the pages. If so, is there a way to install this module without all the added functionality. We just want it to process the credit cards. That's it, no express checkout needed.

 

This is not a correct assumption. You have the option to turn off the express checkout button on the payment page because you already offer it elsewhere (shopping cart, login, shipping). In addition, some people, such as myself, prefer to use a different payment module to offer PayPal as an additional payment option on the payment page, so PayPal doesn't appear to be connected to the credit card option.

 

If you use the PayPal Direct Payments feature, PayPal requires that you also offer Express Checkout. While it is technically possible to omit Express Checkout, PayPal has the option to terminate your use of the Direct Payment API if you do so.

 

That said, I don't know why your details aren't showing up. I logged into your site and found that you appear to be using the AuthorizeNet credit card module, not the PayPal WPP module. The fields appeared for me.

 

--Glen

Share this post


Link to post
Share on other sites

Okay, I purchased a private SSL and I get a lot farther in the checkout process but I'm still hitting a snag. After I hit the Confirm Order button, an IE HTTP Error 500 page shows...both using PP Express and PP Direct. Any ideas?

 

Also, I have no clue if the path to the Express IPN in my OSC Admin is correct. It is currently set at https://itsokaytoshowoff.com/products/catal...ss_checkout_ipn. Is this correct?

 

And...The IPN URL in my Paypal profile...I have no idea what is supposed to be there. I have it set to 'https://itsokaytoshowoff.com/products/catalog/includes/paypal_wpp/paypal_wpp_ipn.php'. Is this correct? Does this even need to be turned on?

 

And in my PP profile I have the Auto-return set to 'https://itsokaytoshowoff.com/products/catalog/checkout_process.php'. Is this correct?

 

Any help would be greatly appreciated. :)

Share this post


Link to post
Share on other sites
Okay, I purchased a private SSL and I get a lot farther in the checkout process but I'm still hitting a snag. After I hit the Confirm Order button, an IE HTTP Error 500 page shows...both using PP Express and PP Direct. Any ideas?

 

No ideas on this one. What page is in the URL box in IE?

 

Also, I have no clue if the path to the Express IPN in my OSC Admin is correct. It is currently set at https://itsokaytoshowoff.com/products/catal...ss_checkout_ipn. Is this correct?

Yes.

And...The IPN URL in my Paypal profile...I have no idea what is supposed to be there. I have it set to 'https://itsokaytoshowoff.com/products/catalog/includes/paypal_wpp/paypal_wpp_ipn.php'. Is this correct? Does this even need to be turned on?

It doesn't need to be turned on for this WPP module. WPP sets the correct IPN URL when it sends each transaction to PayPal.

And in my PP profile I have the Auto-return set to 'https://itsokaytoshowoff.com/products/catalog/checkout_process.php'. Is this correct?

Auto-return is not used with Express Checkout or Direct Payment, so you can leave it blank.

 

I hope this helps.

 

--Glen

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×