Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal - HELP!!


snash0902

Recommended Posts

I have just installed osCommerce 2.2-MS1 and would like to use Paypal. I downloaded the paypalipn_v0971_for_milestone_1 from the Contributions but it doesnt seem to work.

 

I used both the overrightandrun option and the manual option but nothing seems to work.

 

Can anyone help me by suggestions or where I can find an Idiots Guide to installing it. Or, does anyone know someone who can install it for me.

 

Also, I used myPHPAdmin to run the .sql script but may have done it wrong, so any help there would also me much appreciated.

 

Sorry if this has already been posted, but there are soooo any posts on this board I couldnt find any related topic. :oops:

 

 

Many thanks,

 

Steven

Link to comment
Share on other sites

You do not have to use the IPN contribution. The standard PayPal module works fine.

 

The IPN contribution allows you to provide more information to PayPal and the transactions but is not necessary.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Thank you.

 

Hopefully you maybe able to help with my next query, after realising what you kindly posted I noticed that there is no Edit feature for Paypal in the Admin Control Panel as there is for Credit Card and Cash on Delivery.

 

Can I activate it by editing the paypal.php script, or is their a Contribution I can use which will enable it?

Link to comment
Share on other sites

After goingg on another site which offered a demo of the admin, I noticed the whole modules for payments were different, in as much as when you click on Paypal it features a box where you can enter in your details. And, the Credit Card had a Install icon.

 

I have only just installed it, is there something I need to do to activate it all?

Link to comment
Share on other sites

Click on the green light to enable/install the PayPal pagyment method. You should then be able to click the Edit button to enter you email address and default currency.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Many thanks again. I am so embarassed it was that simple! :oops:

 

I have spent days trying to sort it out, hence why I asked about the Paypal IPN as I thought you had to install that for it too work.

 

Oh well, got there in the end! :D

Link to comment
Share on other sites

Daemonj,

I don't know why you say the Paypal IPN is not necessary. If the customer does not click the continue button in Paypal after they pay the order does not get recorded in the cart and you can't even tell what items the customer ordered.

 

That is a big problem.

Link to comment
Share on other sites

Just in case someone doesn't click continue to get back to your site

here is a mod to include into your PayPal module to you can see what the customer ordered on your PayPal payment notification (just in case they don't return to your site to complete the process and generate an invoice) -

 

BACK UP BACK UP BACK UP

 

change the following code:

 

function process_button() {

global $order, $currencies, $currency;

 

if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') {

$my_currency = $currency;

} else {

$my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5);

}

if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {

$my_currency = 'USD';

}

$xx = '';

for ($i=0; $i<sizeof($order->products); $i++) {

$xx .= $order->products[$i]['qty'] . '-' . ($order->products[$i]['name']) . '**';

}

$process_button_string = tep_draw_hidden_field('cmd', '_xclick') .

tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .

tep_draw_hidden_field('item_name', STORE_NAME . ' ' . $xx) .

tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) .

tep_draw_hidden_field('currency_code', $my_currency) .

tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

 

return $process_button_string;

}

 

 

the above code snippet replaces the code snippet in the catalog/includes/modules/payment/paypal.php file

 

look for

 

function process_button() {

 

and then copy and paste and replace that section of code with the code above

___________

Link to comment
Share on other sites

Daemonj,

I don't know why you say the Paypal IPN is not necessary.  If the customer does not click the continue button in Paypal after they pay the order does not get recorded in the cart and you can't even tell what items the customer ordered.

 

That is a big problem.

 

This is not the fault of Oscommerce. This is down to the way that Paypal works and your customers not reading the full instructions on the Paypal site.

 

It should not be necessary to install the IPN module, but unfortunately because the majority of people do not read instructions, it is.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...