Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal WPP Direct Payments & Express Checkout Support


dynamoeffects

Recommended Posts

@phi148: That's because that item has product attributes set. It's perfectly normal.

 

@ollyno1uk2: Yes, just place it like any normal image.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Dynamoeffects - thanks a lot. Can I just insert this code anywhere in the shopping_cart.php and it will show?

 

Many thanks

 

Olly

 

 

Find this code near the bottom of shopping_cart.php

 

<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

Add this code immediately after and the paypal button will appear to the bottom right hand side of the page under the checkout button.

 

<tr>

<td> </td>

<td class="main"> </td>

<td height="100" class="main"> </td>

<td align="right" class="main"> </td>

<td> </td>

</tr>

<tr align="right">

<td colspan="5"><a href="<? echo tep_href_link('ec_process.php', '', 'SSL'); ?>"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border=0></a> </td>

</tr>

 

If you want the full code for the page which includes a reminder for the customer to click on 'update cart' after amending their cart use this:

 

<?php

/*

$Id: shopping_cart.php,v 1.2 2004/07/29 08:33:48 jim Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require("includes/application_top.php");

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<script type="text/javascript">

<!--

function advisecustomer()

{

warn_string = <?php echo '"<b><span class=\"errorText\">'.TEXT_UPDATE_WARNING.'</span></b>"'; ?>;

 

if (document.getElementById && document.getElementById("update_warning")) {

document.getElementById("update_warning").innerHTML = warn_string;

} else if (document.all && document.all["update_warning"]) {

document.all["update_warning"].innerHTML = warn_string;

}

}

//-->

</script>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

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

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

<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_cart.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<?php

if ($cart->count_contents() > 0) {

?>

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[0][] = array('align' => 'center',

'params' => 'class="productListing-heading"',

'text' => TABLE_HEADING_REMOVE);

 

$info_box_contents[0][] = array('params' => 'class="productListing-heading"',

'text' => TABLE_HEADING_PRODUCTS);

 

$info_box_contents[0][] = array('align' => 'center',

'params' => 'class="productListing-heading"',

'text' => TABLE_HEADING_QUANTITY);

 

$info_box_contents[0][] = array('align' => 'right',

'params' => 'class="productListing-heading"',

'text' => TABLE_HEADING_TOTAL);

 

$any_out_of_stock = 0;

$products = $cart->get_products();

for ($i=0, $n=sizeof($products); $i<$n; $i++) {

// Push all attributes information in an array

if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {

while (list($option, $value) = each($products[$i]['attributes'])) {

echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);

$attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix

from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa

where pa.products_id = '" . $products[$i]['id'] . "'

and pa.options_id = '" . $option . "'

and pa.options_id = popt.products_options_id

and pa.options_values_id = '" . $value . "'

and pa.options_values_id = poval.products_options_values_id

and popt.language_id = '" . $languages_id . "'

and poval.language_id = '" . $languages_id . "'");

$attributes_values = tep_db_fetch_array($attributes);

 

$products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];

$products[$i][$option]['options_values_id'] = $value;

$products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name'];

$products[$i][$option]['options_values_price'] = $attributes_values['options_values_price'];

$products[$i][$option]['price_prefix'] = $attributes_values['price_prefix'];

}

}

}

 

for ($i=0, $n=sizeof($products); $i<$n; $i++) {

if (($i/2) == floor($i/2)) {

$info_box_contents[] = array('params' => 'class="productListing-even"');

} else {

$info_box_contents[] = array('params' => 'class="productListing-odd"');

}

 

$cur_row = sizeof($info_box_contents) - 1;

 

$info_box_contents[$cur_row][] = array('align' => 'center',

'params' => 'class="productListing-data" valign="top"',

'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id'], false,'onFocus="advisecustomer();"'));

 

$products_name = '<table border="0" cellspacing="2" cellpadding="2">' .

' <tr>' .

' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .

' <td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';

 

if (STOCK_CHECK == 'true') {

$stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);

if (tep_not_null($stock_check)) {

$any_out_of_stock = 1;

 

$products_name .= $stock_check;

}

}

 

if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {

reset($products[$i]['attributes']);

while (list($option, $value) = each($products[$i]['attributes'])) {

$products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';

}

}

 

$products_name .= ' </td>' .

' </tr>' .

'</table>';

 

$info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"',

'text' => $products_name);

 

$info_box_contents[$cur_row][] = array('align' => 'center',

'params' => 'class="productListing-data" valign="top"',

'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4" onFocus="advisecustomer();"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']));

 

$info_box_contents[$cur_row][] = array('align' => 'right',

'params' => 'class="productListing-data" valign="top"',

'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');

}

 

new productListingBox($info_box_contents);

?>

</td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<!-- start Customer Update Cart Reminder 2.0 -->

<td class="main">

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

<tr>

<td class="main">

<script type="text/javascript">

<!--

if (!(document.getElementById) && !(document.all)) {

document.write("<b><span class=\"errorText\"><?php echo TEXT_UPDATE_WARNING; ?></span>");

}

else {

document.write("<span id=\"update_warning\" class=\"errorText\"> </span>");

}

//-->

</script>

<noscript>

<b><span class="errorText"><?php echo TEXT_UPDATE_WARNING; ?></span></b>

</noscript>

</td>

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right" class="main" valign="top" nowrap><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b></td>

</tr>

</table>

</td>

<!-- end Customer Update Cart Reminder 2.0 -->

</tr>

<?php

if ($any_out_of_stock == 1) {

if (STOCK_ALLOW_CHECKOUT == 'true') {

?>

<tr>

<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></td>

</tr>

<?php

} else {

?>

<tr>

<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td>

</tr>

<?php

}

}

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?></td>

<?php

$back = sizeof($navigation->path)-2;

if (isset($navigation->path[$back])) {

?>

<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

<?php

}

?>

<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

<tr>

<td> </td>

<td class="main"> </td>

<td height="100" class="main"> </td>

<td align="right" class="main"> </td>

<td> </td>

</tr>

<tr align="right">

<td colspan="5"><a href="<? echo tep_href_link('ec_process.php', '', 'SSL'); ?>"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border=0></a> </td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

} else {

?>

<tr>

<td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

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

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<?php

}

?>

</table></form></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

regrads

Frank

Link to comment
Share on other sites

This isn't a WPP related question, per se. There is a contribution that makes the payment selection a little more intuitive, but I haven't seen anything like what you're talking about. What you're talking about would be a change in the checkout_payment.php script, where adding a little javascript that hides and shows the selected payment module.

 

Actually, this would be rather simple to implement. If I have time this week, I'll see about releasing it as a contribution.

 

Did you get round to doing this?

 

I have updated with contributions,3526 but am still getting customers entering their card details then some how also selecting a different payment method and not realising.

 

I would think this is happening to lots of other sellers as well if they offer more than one payment method.

 

Thanks Frank

Link to comment
Share on other sites

@webmaster69: No, not yet. I have too many ongoing projects right now to work on it.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Hi,

 

I'm an oscommerce newbie, and I want to install the Paypal Payment Pro module with UK Merchants, ( PayPal Website Payments Pro (US/UK) by dynamoeffects v0.9 ).

 

But the next module ( PayPal Website Payments Pro (US) by dynamoeffects v0.9 ) states that:

 

"This module no longer works with UK merchants and all UK features have been removed."

 

Is it safe to use the UK Merchants version? And if not, please tell me why, and which UK version you suggest I install?

 

Thank you.

Link to comment
Share on other sites

It goes like this:

There is a US API and a UK API. We discovered that UK merchants could use the US API seemingly without a problem, even to this day. But one UK merchant said that PayPal informed them that they should switch to the UK API. Perhaps it's more reliable, I don't know.

 

So technically this one will work, but it would be a good idea to use their version instead.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

It goes like this:

There is a US API and a UK API. We discovered that UK merchants could use the US API seemingly without a problem, even to this day. But one UK merchant said that PayPal informed them that they should switch to the UK API. Perhaps it's more reliable, I don't know.

 

So technically this one will work, but it would be a good idea to use their version instead.

 

Thank you.

Link to comment
Share on other sites

Contact your webhost and ask them if they have curl support. If they do, then use the wpp_diagnostics.php script and paste the error that you receive here.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Contact your webhost and ask them if they have curl support. If they do, then use the wpp_diagnostics.php script and paste the error that you receive here.

 

Thank you it says that I need to get an SSL certificate.

Link to comment
Share on other sites

Hi,

 

I've just tried implementing UK paypal stuff, got through it all, but now get

Fatal error: Call to undefined function tep_paypal_wpp_enabled() in C:\.....\checkout_shipping.php on line 96

 

What is undefined? Which page do I fix it on? I'm guessing its not checkout_shipping that is the problem as I copied it straight over.

Thanks!!!

Link to comment
Share on other sites

Hi,

 

I've just tried implementing UK paypal stuff, got through it all, but now get

Fatal error: Call to undefined function tep_paypal_wpp_enabled() in C:\.....\checkout_shipping.php on line 96

 

What is undefined? Which page do I fix it on? I'm guessing its not checkout_shipping that is the problem as I copied it straight over.

Thanks!!!

 

 

See step 4 of the installation instructions in README.html.

 

You must modify a number of files to complete the installation, or copy the files included with the module. In particular, your problem will be solved by applying the required changes to /catalog/includes/functions/general.php.

 

--Glen

Link to comment
Share on other sites

See step 4 of the installation instructions in README.html.

 

You must modify a number of files to complete the installation, or copy the files included with the module. In particular, your problem will be solved by applying the required changes to /catalog/includes/functions/general.php.

 

--Glen

 

thanks! it was a slight line missing in general.php! you're a star! ;)

Link to comment
Share on other sites

If possible, how can I prevent a Google Checkout button from appearing if a customer has already registered an PP Express Checkout session? (term is tokened?)

 

Specifically, when a customer chooses PP Express Checkout, upon being returned from PP to the store checkout_shipping page, they see the nice message

"You're currently checking out with PayPal Express Checkout!

Click Here to choose another payment method."

in place of the EC button. This is as it should be and all good.

 

But if they decide to backtrack to the shopping cart page, they still see a Google Checkout button, which I would rather they not see since they have already chosen PP Express Checkout.

 

Ideally, having the same PP EC message

"You're currently checking out with PayPal Express Checkout!

Click Here to choose another payment method."

in place of the GC button would be perfect.

 

The code in shopping_cart.php I need to modify is:

 

	  <tr>
	<td>
<?php
// ** GOOGLE CHECKOUT **
// Checks if the Google Checkout payment module has been enabled and if so 
// includes gcheckout.php to add the Checkout button to the page 

$status_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GOOGLECHECKOUT_STATUS'");
while ($status = tep_db_fetch_array($status_query)) {
  $status_flag = $status['configuration_value'];	
}
if ($status_flag == 'True') {
  include('googlecheckout/gcheckout.php');
}
// ** END GOOGLE CHECKOUT **
?>
	</td>
  </tr>
<?php
 } else {
?>
  <tr>
	<td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></form></td>
  </tr>
<?php
 }
?>
</table></td>
<!-- body_text_eof //-->

 

Thank you in advance for any assistance.

-Dave

Link to comment
Share on other sites

I have paypal websites payments pro installed.

 

The direct payments is working.

 

I am having a problem with the express checkout. I have two scenarios which are the cause of the problem.

 

The firs scenario is when the customer adds the item to thier cart, the the cart shows them the contents (shopping_cart.php). If they click the express checkout button it takes you to paypal fine then brings you back to the store ok to the page where you confirm your order (checkout_confirmation.php). The problem is, that it totally is skipping the shipping routine and the customer gets away with free shipping on thier order.

 

The second scenario is if the customer clicks checkout on thier cart and either signs up for a new account or logs into a thier existing account they are taken to the shipping page (checkout_shipping.php). If the customer clicks the express checkout button here (whether they clicked the bubble for the shipping type ie: ground, next day or 3 day or don't check the bubble at all) they go to paypal to and click the button to pay now whithin paypal, the shipping cost does not carry over and they get free shipping.

 

I am using the multi-vendor shipping add-on. I wonder if this may be causing part of my problem?

 

Can someone please help me diagnose this so I don't get more orders with the shipping cost left out?

 

On a side note, if the customer does not checkout with express checkout before they enter thier billing info, why do we have to show them the express checkout button? They have already chosen not to use express checkout and I think they should have to use direct payment from that point on. Just my opinion and was wondering other peoples thoughts?

 

Thanks,

Brian

Link to comment
Share on other sites

I have paypal websites payments pro installed.

 

The direct payments is working.

 

I am having a problem with the express checkout. I have two scenarios which are the cause of the problem.

 

The firs scenario is when the customer adds the item to thier cart, the the cart shows them the contents (shopping_cart.php). If they click the express checkout button it takes you to paypal fine then brings you back to the store ok to the page where you confirm your order (checkout_confirmation.php). The problem is, that it totally is skipping the shipping routine and the customer gets away with free shipping on thier order.

 

The second scenario is if the customer clicks checkout on thier cart and either signs up for a new account or logs into a thier existing account they are taken to the shipping page (checkout_shipping.php). If the customer clicks the express checkout button here (whether they clicked the bubble for the shipping type ie: ground, next day or 3 day or don't check the bubble at all) they go to paypal to and click the button to pay now whithin paypal, the shipping cost does not carry over and they get free shipping.

 

I am using the multi-vendor shipping add-on. I wonder if this may be causing part of my problem?

 

Can someone please help me diagnose this so I don't get more orders with the shipping cost left out?

 

On a side note, if the customer does not checkout with express checkout before they enter thier billing info, why do we have to show them the express checkout button? They have already chosen not to use express checkout and I think they should have to use direct payment from that point on. Just my opinion and was wondering other peoples thoughts?

 

Thanks,

Brian

 

Multi-vendor shipping might be the cause of your problem. I can't be certain, because I don't use it. Express Checkout works correctly for me. Once the customer logs into PayPal, they are returned to checkout_shipping to choose a shipping method.

 

As to your side note, consider the situation when the customer logs in with an empty cart. Once they add items to their cart and checkout, they don't get the Express Checkout button unless it appears on the shipping page. Every customer should be given the opportunity to select PayPal at some point during the checkout process; showing the button on the shipping page accomplishes that.

 

--Glen

Link to comment
Share on other sites

Hi all,

 

Ive just had a customer buy some goods from me via paypal yet i have no orders showing on my admin section and the paypal receipt has no details of what they have ordered, this is the first payment to go via paypal so i need to get it sorted but have no idea how, any help is much appreciated

 

Sophie

Link to comment
Share on other sites

Multi-vendor shipping might be the cause of your problem. I can't be certain, because I don't use it. Express Checkout works correctly for me. Once the customer logs into PayPal, they are returned to checkout_shipping to choose a shipping method.

 

As to your side note, consider the situation when the customer logs in with an empty cart. Once they add items to their cart and checkout, they don't get the Express Checkout button unless it appears on the shipping page. Every customer should be given the opportunity to select PayPal at some point during the checkout process; showing the button on the shipping page accomplishes that.

 

--Glen

 

How would I go about diagnosing this so I can find the root cause?

 

Thanks,

Brian

Link to comment
Share on other sites

Hi all,

 

Ive just had a customer buy some goods from me via paypal yet i have no orders showing on my admin section and the paypal receipt has no details of what they have ordered, this is the first payment to go via paypal so i need to get it sorted but have no idea how, any help is much appreciated

 

Sophie

 

Sophie,

Which PayPal payment module are you using? There are several; the default one included with osCommerce is pretty much useless, as you don't get details if the customer doesn't return to your shop after submitting the payment.

 

The module described in this thread is for PayPal's Website Payments Pro service, which is available only to US and UK merchants, and is an extra-cost feature which allows customers to enter their credit card information directly in your shop, so your checkout looks more like a larger merchant's.

 

If you need a "standard" PayPal module, where customers go to PayPal to pay for their order, I recommend either of the following:

 

osCommerce PayPal IPN Module v2.2 For 2.2MS2 Download and install the latest one by Terra.

PayPal Express Checkout IPN

 

I use the first one to offer PayPal as a payment choice on checkout_payment.php. The second one is based on the module desbribed in this thread, but with the credit card stuff removed, and instant payment notification (IPN) added. This automatically updates the order status when an eCheck customer's payment clears.

 

--Glen

Edited by SteveDallas
Link to comment
Share on other sites

Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in /home/sites/home/web/includes/modules/payment/paypal_wpp/PayPal.php on line 11

 

Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='/home/sites/home/web/includes/modules/payment/paypal_wpp:.:/usr/lib/php') in /home/sites/home/web/includes/modules/payment/paypal_wpp/PayPal.php on line 11

 

I have the Paypal mod installed and tested it with this error. I dont know enough about OS or PHP to know how to fix this. Can any one tell me whats the deal / error mean and how can I resolve this.

 

I have the new ver of OS running on a raq4 under Linux with sql 5 and php 4 loaded. It seems to be a pear error so what is pear, I know perl not pear :)

 

Thanks

 

Steve

I am new to OS, have always used CC but they cant seem to work out the paypal issues so I am looking for a solution that can actualy work with paypal proactually

Link to comment
Share on other sites

I have the Paypal mod installed and tested it with this error. I dont know enough about OS or PHP to know how to fix this. Can any one tell me whats the deal / error mean and how can I resolve this.

 

I have the new ver of OS running on a raq4 under Linux with sql 5 and php 4 loaded. It seems to be a pear error so what is pear, I know perl not pear :)

 

Thanks

 

Steve

I am new to OS, have always used CC but they cant seem to work out the paypal issues so I am looking for a solution that can actualy work with paypal proactually

 

Steve,

It appears that you are using a different module; the one described in this thread uses a PHP module called paypal_wpp.php, not PayPal.php. Perhaps you are using the "official" module supported by PayPal, which is derived from version 0.7.3 of this module. You will need to contact PayPal for support of that version.

 

From the error message, it appears that you didn't follow the installation instructions completely, or PEAR (the PHP Extension and Application Repository) isn't installed correctly with your version of PHP. It's a default install with current releases of PHP, so you may need to check your PHP installation. Versions of this module prior to 0.8 required a library from PayPal that was dependent on PEAR. The current version does not have this dependency.

 

The module supported in this thread can be found at <http://www.oscommerce.com/community/contributions,3647>.

 

--Glen

Link to comment
Share on other sites

I want to add PayPal payments pro (UK) with PWA. I've downloaded the official version from PayPal.

 

The instructions say:

...You will need to turn on register_globals and enable the mysql extension in php.ini, at a minimum....

 

However, I have already added the "register_globals_v1.5" contribution to disable register globals for security reasons.

 

Can I still install the contribution? Will it still work?

Link to comment
Share on other sites

I want to add PayPal payments pro (UK) with PWA. I've downloaded the official version from PayPal.

 

The instructions say:

...You will need to turn on register_globals and enable the mysql extension in php.ini, at a minimum....

 

However, I have already added the "register_globals_v1.5" contribution to disable register globals for security reasons.

 

Can I still install the contribution? Will it still work?

 

This forum is not for questions related to the official paypal versions. Look at the post immediately previous to your post

-Dave

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...