Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Paypal checkout problem


46 replies to this topic

#1 chaners

  • Community Member
  • 8 posts
  • Real Name:zim

Posted 22 March 2004, 19:06

Hello,

When I press the confirm checkout button using paypal payment option. It will go to the paypal security payment page. However, the amount is not show on the payment page, which I have to key in the amount by myself.
:o

Can any one help me how to make the total amount show on the payment page.

Thanks,
Chaners

#2 ptilva

  • Community Member
  • 2 posts
  • Real Name:Peter Tilva

Posted 03 May 2004, 04:02

:rolleyes: We are using Paypal Module, when we do checkout, it goes to paypal site with the store name and email address and other details, but shopping cart total doesn't get forwarded.

Any idea how this can be solved ? Will installing Paypal_IPN help ? If yes how can we install it?

Thank all you gues in advance for support.

#3 TechNut

  • Community Member
  • 6 posts
  • Real Name:Anton

Posted 30 May 2004, 00:39

Guys, I hope for your sakes that you've already solved this, but just in case see my post I made today. This will hopefully be the solution you want.

#4 241

  • Community Member
  • 6,181 posts
  • Real Name:Stephen Bissett
  • Location:Scotland

Posted 30 May 2004, 09:40

There are plenty of posts on Paypal issues and official support threads that should offer a solution to any paypal issues
No longer giving free advice. Please place deposit in meter slot provided. [img]http://forums.oscommerce.com/style_images/1/folder_post_icons/icon1.gif[/img] Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! [img]http://forums.oscommerce.com/style_emoticons/default/tongue.gif[/img]


Support The Project
Documentation/Knowledgebase/Discussions
My Contributions

#5 innovationsuk

  • Community Member
  • 19 posts
  • Real Name:Fiaz Siddique

Posted 16 September 2005, 00:04

TechNut, on May 30 2004, 01:39 AM, said:

Guys, I hope for your sakes that you've already solved this, but just in case see my post I made today.  This will hopefully be the solution you want.

<{POST_SNAPBACK}>


Please help someone - i keep seeing replies there are lots of posts in this regards - but they are not - i have searched high and low - please someone help.

#6 tante

  • Community Member
  • 16 posts
  • Real Name:tante

Posted 26 September 2005, 20:43

View Postinnovationsuk, on Sep 16 2005, 01:04 AM, said:

Please help someone - i keep seeing replies there are lots of posts in this regards - but they are not - i have searched high and low - please someone help.
I have the same problem :(

#7 dheathorn

  • Community Member
  • 9 posts
  • Real Name:Derrick Heathorn

Posted 12 April 2007, 01:06

Solution thanks to Nick Schoonens. Though this says paypal_ipn.php module file it also works on the paypay.php module file.

Nick Schoonens said:

So after some more digging I came across the following code in the /catalog/includes/modules/payment/paypal_ipn.php file on lines 261-263.

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

For some reason the developers of the module (osCommerce team) decided that AUD wasn't a currency supported by Paypal (and maybe it wasn't when they first released it in late 2004), but it definitely is. So a simple hack to the code like this fixed my problem, and now sends the correct amount to Paypal in Australian Dollars.

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

Edited by dheathorn, 12 April 2007, 01:08.


#8 infinitelinx

  • Community Member
  • 1 posts
  • Real Name:Julie

Posted 30 April 2007, 15:06

Could someone please help me! I'm having the same issue with the amount not passing to PayPal and it's in CAD. CAD is already an option and it still doesn't pass. I did not install IPN. Where do I go to install it. I go to Contributions but it's just a bunch of notes... I don't see anywhere to go to actually install IPN. Please HELP!!!


View Postdheathorn, on Apr 12 2007, 01:06 AM, said:

Solution thanks to Nick Schoonens. Though this says paypal_ipn.php module file it also works on the paypay.php module file.


#9 cryosi

  • Community Member
  • 16 posts
  • Real Name:barry

Posted 05 May 2007, 14:38

I have this trouble and still not found the answer, its ok whomever it was saying there are plenty of paypal queries in here that deal with any issues we have, yes
considering that there are loads and loads and still i can not find what im looking for, i dont find that answer helpfull in anyway shape or form,

Why does oscommerce go to paypal with no prices or postage information, what do we have to do to sort it out, what is missing form oscommerce to stop this.

and one link that was posted with a possible solution is broken or missing.

one stuck newbie.

#10 pkunzip123

  • Community Member
  • 1 posts
  • Real Name:Paul

Posted 15 May 2007, 22:25

i have the same problem :( please there must be something small missing, i have managed to sort out the part with the product name and code, just paypal asks me to manually input the total, and amount of items

plzzzzzzzzzzzz somebody, have been searching on the forums for 2 weeks straight am tired need sleep

Any advise Welcomed :)

#11 denzel2364

  • Community Member
  • 168 posts
  • Real Name:Dean

Posted 16 May 2007, 12:04

View Postpkunzip123, on May 15 2007, 11:25 PM, said:

i have the same problem :( please there must be something small missing, i have managed to sort out the part with the product name and code, just paypal asks me to manually input the total, and amount of items

plzzzzzzzzzzzz somebody, have been searching on the forums for 2 weeks straight am tired need sleep

Any advise Welcomed :)


sorry people, me too have the same issue. starting to get frustrated. i have sooo many posts but nobody replies. Also, the product title doesnt get carried over. - dunno why!

breaks my heart, but i want it sorted. if i find out, ill let you all know. hopefully you too will do the same. eventho i have had someone who knows php and they too cant figure it out!

#12 j_mac

  • Community Member
  • 15 posts
  • Real Name:Jimmy

Posted 17 May 2007, 23:33

View Postdenzel2364, on May 16 2007, 12:04 PM, said:

sorry people, me too have the same issue. starting to get frustrated. i have sooo many posts but nobody replies. Also, the product title doesnt get carried over. - dunno why!

breaks my heart, but i want it sorted. if i find out, ill let you all know. hopefully you too will do the same. eventho i have had someone who knows php and they too cant figure it out!


I had the same problem. In my case it was because of currencies: I was using CAD in paypal but not in oscommerce where I was using USD. I added CAD as an option through the oscommerce admin and made it the default and problem solved.

#13 cfinch95

  • Community Member
  • 7 posts
  • Real Name:Chris Finch
  • Gender:Male
  • Location:Illinois, USA

Posted 28 May 2007, 13:36

I am also having this same problem, Oscommerce is not forwarding the totals to Paypal at checkout.
It appears to be the same for many of you.
Is anyone even reading these threads as to provide a solution?

Thanks ahead of time for any help that can be issued!

#14 satish

  • Community Member
  • 5,325 posts
  • Real Name:Satish Mantri
  • Gender:Male
  • Location:Nagpur(India)

Posted 28 May 2007, 15:49

$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) .
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;

This code is responsible in std oscommerce payment module.


So just serialize and place this $process_button_string in a file.
if amount has no value then You need to dump the order info total to know what is happening.

Second If You are trying to send some encrypted values were as YOu are stating on paypal that form is unencrypted or vice versa then too this might happen.

Satish
Ask for osCommerce value addon suggestion tips for your site.
Check My About US For who am I and what My company does.


#15 cfinch95

  • Community Member
  • 7 posts
  • Real Name:Chris Finch
  • Gender:Male
  • Location:Illinois, USA

Posted 29 May 2007, 01:28

$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) .
tep_draw_hidden_field('amount', number_format((($order->info['total'] - $order->info['shipping_cost']) * MODULE_PAYMENT_PAYPAL_FEE * $currencies->get_value($my_currency) + MODULE_PAYMENT_PAYPAL_FIX_FEE), $currencies->get_decimal_places($my_currency))) .
tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * MODULE_PAYMENT_PAYPAL_FEE * $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')) .
tep_draw_hidden_field('rm', '2') .
tep_draw_hidden_field('return', 'http://www.YourDomain.Line99/checkout_process.php');

return $process_button_string;

This out of my paypal.php. Which appears to be the same as you posted.. What are you trying to say? that I need to create another blank.php and just add it to the site? hmm.. I'm not really understanding what you are saying..

Yes, I suppose the information may be encrypted since it is under an ssl.. That could be why it is not working I suppose..

I have oscommerce setup on another domain on the same resellers area and it works fine they are both running under an https://mydomain.com area..

pretty much identical setups.

Thanks..

Edited by cfinch95, 29 May 2007, 01:31.


#16 cfinch95

  • Community Member
  • 7 posts
  • Real Name:Chris Finch
  • Gender:Male
  • Location:Illinois, USA

Posted 30 May 2007, 16:05

Also, I just noticed that this is happening on my previous cart setup on another server that was working correctly a week ago.

Did anyone notice if paypal changed their forwarding codes? I'm sure it was working fine a week ago with no problems.. Strange..

Thanks..

-chris

#17 qai

  • Community Member
  • 7 posts
  • Real Name:Rob

Posted 02 June 2007, 11:18

am having the same problem
has it been sorted yet

Help needed please
Rob

#18 satish

  • Community Member
  • 5,325 posts
  • Real Name:Satish Mantri
  • Gender:Male
  • Location:Nagpur(India)

Posted 02 June 2007, 14:33

As stated in My above post.

Just collect what is in the $process_button_string.

and paste so as to explain.

Satish
Ask for osCommerce value addon suggestion tips for your site.
Check My About US For who am I and what My company does.


#19 qai

  • Community Member
  • 7 posts
  • Real Name:Rob

Posted 02 June 2007, 19:02

View Postsatish, on Jun 2 2007, 10:33 AM, said:

As stated in My above post.

Just collect what is in the $process_button_string.

and paste so as to explain.

Satish
Tried both
paste into my paypal.php
just hangs, and nothing happens

#20 cfinch95

  • Community Member
  • 7 posts
  • Real Name:Chris Finch
  • Gender:Male
  • Location:Illinois, USA

Posted 03 June 2007, 14:19

Thank You Satish,
It is passing everything correctly now since I changed my code to the code you posted. I'm sure that is probably the default code for oscommerce. I had an addon because of the problem with losing orders through paypal if someone didn't press continue. I'll have to check on that contribution to see if there is an update.

Thanks for your help,
-chris