Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution]Paypal IPN - Devosc


devosc

Recommended Posts

Have you asked paypal what they have changed?

 

Its likely to be a problem with the paypal updates so I would ask them first.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

  • Replies 2.1k
  • Created
  • Last Reply

Top Posters In This Topic

I am asking again to see if anyone can help with this issue if the order total not being sent to paypal.

 

Thanks for your reply!

 

Hi all,

 

I've installed the contrib IPN 2.8 and all works well except for 1 thing. The total amount does not get passed to paypal for one reason or another. I went through the installation twice now and all is correct.

 

I have enabled the IPN in my profile for Paypal but still the user has to enter the amount manualy.

 

Can anyone tell me what I should be looking for to fix this issue?

 

Sorry if this has been covered before but searching through 43 pages is ........  Kinda ......

Link to comment
Share on other sites

Like I said, everything works great, stock is subtracted, the account is subtracted, the world is happy...

 

Oh, one thing, in order for stock to be subtracted, you have to click on accept in the PayPal area in the order.

 

Thanks for this. I tried it and it isn't working, though. I haven't tested it as far as deducting the amount from the credit voucher as I'm only using the coupon part of CCGV. But it's not subtracting the stock still. Which makes sense, as the code you added looks like it only deals with subracting the voucher credit....

 

What do you mean in order for the stock to be subtracted you have to click on accept in the PayPal area in the order? In PayPal? In osCommerce? Does the customer have to click on accept, or the store owner? Can you tell me exactly on which screen the "accept" button appears? This might be why it's not working!

 

Does ANYONE have any idea how to fix this problem? Has anyone looked in the CCGV support thread to see if they've covered it over there? I'm headed over there next...

 

-emiLy

Link to comment
Share on other sites

The install I just did worked pretty well -- was able to pay via paypal but no record of the transaction found under "PayPal IPN" -- but it was in "Orders".

 

When I checked the orde (via the edit button) the addresses were there (which was good) but I did find this:

 

No PayPal Transaction Information Available (c692adab37bf558b297a47ace67e3ae5)

 

Which was a bit odd since I had followed all of the install instructions.

 

So paypal isn't passing the info back to OSCommerce? Has anyone run into this problem?

 

Any tips and tricks would be appreciated!

 

Thanks -

 

King Snake

Link to comment
Share on other sites

This is an on-going issue with me aswell, i dont know but looks like no one can help but I see that this works with some people. I also have the CCGV installed but I looked through the code and there is no repeat of the lines mentioned in the previous posts.... So I am baffled, have no Idea how to get this working. So i'm thinking of removing this contrib since it's causing me more headachs then anything else, unless someon could help us ! ????

 

Nelson

 

 

Anyone still have any ideas about sending final amount to paypal?

 

Still cannot get it to work, user still has to imput themsels.

 

Can it even be done with this cont?

 

:(

 

Thankyou for anyhelp

Link to comment
Share on other sites

I'm also confused as how to test the panel. I have read the help files but, when I enter the PAYPAL11100000000 in the Custom and Transaction ID, i get

Invalid Test

 

 

 

An error has occured, mostly likely because the Custom field in the IPN Test Panel did not have a valid transaction id.?

 

What is this damn transaction ID?

 

In the Orders section, I have that i am testing as per help files, and the only this that appears under the paypal section on the order as for Transaction Activity is :

Transaction Activity

Date?  Status?  Details?  Action?  Gross?  Fee?  Net Amount?

No PayPal Transaction Information Available (cd2a41a73d1de72ac7a81057751e5288)?

Also, if I enter the # cd2a41a73d1de72ac7a81057751e5288 in the parent transaction ID, it wont fit as this number is too long. So what in the hell am I suppose to enter in the "Custom" and "Parent Transaction ID" field?

 

Please, someone help !

Edited by npereira
Link to comment
Share on other sites

OK,

 

I got the testing working, what I did is enter the number cd2a41a73d1de72ac7a81057751e5288 in the CUSTOM field, then enter PAYPAL00000001 in the Transaction ID and entered the amout of 14.93 in the Settle amount and MC Gross.

 

Although, now in the Order status, the order is ON-HOLD which I understand, but that order screen shows (under the paypal section):

Transaction Activity

Date  Status  Details  Action  Gross  Fee  Net Amount 

Oct. 18, 2004  Completed  Details      15  0  15 

 

How come it rounded up the amout to 15$ ? It's suppose to be 14.93$ CAD.

Do I have to change decimal settings somewhere? If so, where?

 

Thanks again.

 

Maybe, once this is fixed it will all fall into place and send the amout to paypal ?

 

I'm also confused as how to test the panel. I have read the help files but, when I enter the PAYPAL11100000000 in the Custom and Transaction ID, i get

What is this damn transaction ID?

 

In the Orders section, I have that i am testing as per help files, and the only this that appears under the paypal section on the order as for Transaction Activity is :

 

Also, if I enter the # cd2a41a73d1de72ac7a81057751e5288 in the parent transaction ID, it wont fit as this number is too long. So what in the hell am I suppose to enter in the "Custom" and "Parent Transaction ID" field?

 

Please, someone help !

Link to comment
Share on other sites

I was having a similar problem with the IPN not showing up but the order appearing in the Orders section.

 

In the order summary I got the same comment in the IPN tbale;

Transaction Activity

Date  Status  Details  Action  Gross  Fee  Net Amount 

No PayPal Transaction Information Available ......

 

I finally fixed this by going into the PayPal module settings and making the "Business id" the same as the PayPal email address!

 

I had the business name set as [email protected] and had payments going through using my mailbox that's set up just for PayPal payments - [email protected].

 

Once I changed the Business id to [email protected], everything worked - IPN, Stock deduction, Processing status, EVERYTHING !!

 

Regards,

 

Richard.

Link to comment
Share on other sites

The amount passed to paypal is still not working for me and for THE LOVE OF GAD ! I can't figure out why... This has been an ongoing issue for the past week and 1/2.... Why is there no one that can help?

 

Why is the contributor of this app cannot tell me or point me in the right direction?

 

Nelson

 

 

I was having a similar problem with the IPN not showing up but the order appearing in the Orders section.

 

In the order summary I got the same comment in the IPN tbale;

I finally fixed this by going into the PayPal module settings and making the "Business id" the same as the PayPal email address!

 

I had the business name set as [email protected] and had payments going through using my mailbox that's set up just for PayPal payments - [email protected].

 

Once I changed the Business id to [email protected], everything worked - IPN, Stock deduction, Processing status, EVERYTHING !!

 

Regards,

 

Richard.

Link to comment
Share on other sites

I would be much apriciated if anyone could help us with this transfer cart amount to paypal problem.

 

Out of interest on the paypal setup side i noticed this:

Payment Data Transfer (optional)

 

Payment Data Transfer allows you to receive notification of successful payments as they are made. The use of Payment Data Transfer depends on your system configuration and your Return URL. Please note that to use Payment Data Transfer, you must turn on Auto Return. 

 

 

Payment Data Transfer:

On

Off

 

Does this need to be on or of when on you get a code. This anything to do with it or not?

 

Cheers:)

Link to comment
Share on other sites

Yes, you have to set this to ON

 

But that still does not resolve our issue.

 

Nelson

 

I would be much apriciated if anyone could help us with this transfer cart amount to paypal problem.

 

Out of interest on the paypal setup side i noticed this:

Does this need to be on or of when on you get a code. This anything to do with it or not?

 

Cheers:)

Link to comment
Share on other sites

if you could provide more info about the types (and amounts) of the orders being made might provide more insight. Also what order_total modules (or contributions) are installed? really you shouldn't be having any real problem unless the amount being passed to PayPal is zero - which would cause PayPal to ask that the amount be re-entered, e.g a 2 d.p. non-zero value.

"Any fool can know. The point is to understand." -- Albert Einstein

Link to comment
Share on other sites

The only contrib I have installed that could change this is the Voucher contrib, I think that's the CCGV.

 

How can I see what is being passed to paypal? Is there a way to find that?

 

Is there a simple way to delete or temporarely disable the voucher (CCGV) contrib?

 

if you could provide more info about the types (and amounts) of the orders being made might provide more insight. Also what order_total modules (or contributions) are installed? really you shouldn't be having any real problem unless the amount being passed to PayPal is zero - which would cause PayPal to ask that the amount be re-entered, e.g a 2 d.p. non-zero value.

Link to comment
Share on other sites

you view the source of the PayPal checkout splash page for the info being passed to paypal, or you also look at the table orders_session_info.

 

Is it only the PayPal payment module your having problems with?

 

if you wanted to disable calling the ccgv function then in paypal/catalog/checkout_process.inc.php, comment '//' out the $order_total lines.

 

Are you applying a ccgv voucher for these payments? do these ccgv vouchers make the order total amount zero?

"Any fool can know. The point is to understand." -- Albert Einstein

Link to comment
Share on other sites

No Im not entering a voucher at all.

Here is a view source of the splash screen:

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<title>Ott-Motorcycles.ca On-Line SHOP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {background-color:#FFFFFF;}
body, td, div {font-family: verdana, arial, sans-serif;}
</style>
</head>
<body onload="return document.paypal_payment_info.submit();">

<form name="paypal_payment_info" action="https://www.paypal.com/cgi-bin/webscr" method="post"><table cellpadding="0" width="100%" height="100%" cellspacing="0" style="border:1px solid #003366;">
 <tr><td align="middle" style="height:100%; vertical-align:middle;">
   <div><img src="images/oscommerce.gif" border="0" alt="" width="514" height="140"></div>
   <div style="color:#003366"><h1>Processing transaction<img src="includes/modules/payment/paypal/images/period_ani.gif" border="0" alt="" width="18" height="12"></h1></div>
   <div style="margin:10px;padding:10px;">If this page appears for more than 5 seconds, please click the PayPal Checkout button to complete your order.</div>
   <div style="margin:10px;padding:10px;"><input type="image" src="includes/languages/english/images/buttons/button_ppcheckout.gif" border="0" alt="PayPal Checkout" title=" PayPal Checkout "></div>
 </td></tr>
</table>
<input type="hidden" name="cmd" value="_ext-enter"><input type="hidden" name="business" value="[email protected]"><input type="hidden" name="currency_code" value="CAD"><input type="hidden" name="return" value="http://shop.ott-motorcycles.ca/checkout_success.php?action=success"><input type="hidden" name="cancel_return" value="http://shop.ott-motorcycles.ca/checkout_payment.php"><input type="hidden" name="notify_url" value="http://shop.ott-motorcycles.ca/ipn.php"><input type="hidden" name="bn" value="osc-ipn-v1"><input type="hidden" name="mrb" value="R-5X478387L4986632G"><input type="hidden" name="pal" value="ZH3UM7MDRAMCG"><input type="hidden" name="no_shipping" value="1"><input type="hidden" name="item_name" value="Ott-Motorcycles.ca On-Line SHOP"><input type="hidden" name="redirect_cmd" value="_xclick"><input type="hidden" name="amount" value="0"><input type="hidden" name="shipping" value="0"><input type="hidden" name="rm" value="1"><input type="hidden" name="custom" value="011de30be8888169be6ece089c893f43"><input type="hidden" name="email" value="[email protected]"><input type="hidden" name="first_name" value="Nelson"><input type="hidden" name="last_name" value="Pereira"><input type="hidden" name="address1" value="251 de Sauternes"><input type="hidden" name="address2"><input type="hidden" name="city" value="Gatineau"><input type="hidden" name="state" value="Quebec"><input type="hidden" name="zip" value="J8R3N4"><input type="hidden" name="lc" value="CA"><input type="hidden" name="no_note" value="0"><input type="hidden" name="cn" value="Add Comments About Your Order"><input type="hidden" name="cs" value="0"><input type="hidden" name="page_style" value="default"><input type="hidden" name="item_number" value="Starter Pawl">
</body></html>

 

I will try to comment out that section, and see if that fixes the issue.

 

you view the source of the PayPal checkout splash page for the info being passed to paypal, or you also look at the table orders_session_info.

 

Is it only the PayPal payment module your having problems with?

 

if you wanted to disable calling the ccgv function then in paypal/catalog/checkout_process.inc.php, comment '//' out the $order_total lines.

 

Are you applying a ccgv voucher for these payments? do these ccgv vouchers make the order total amount zero?

Link to comment
Share on other sites

Mine are various prices nothin higher that about ?11 for single order.

 

I have no other payment contributions installed and just use cheque/money and the paypal one. It has always been empty when got to paypal. Everything else works fine thats why so frustrating :(

 

Is there not any code i can check or something lol, gettin desparate :(

 

Thanks for you help though Greg

 

Here is my checkout_spalsh

?>

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

<html <?php echo HTML_PARAMS; ?>>

<head>

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

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

<style type="text/css">

body {background-color:#FFFFFF;}

body, td, div {font-family: verdana, arial, sans-serif;}

</style>

</head>

<body onload="return document.paypal_payment_info.submit();">

<?php echo "\n".tep_draw_form('paypal_payment_info', $this->form_paypal_url, 'post'); ?>

<table cellpadding="0" width="100%" height="100%" cellspacing="0" style="border:1px solid #003366;">

  <tr><td align="middle" style="height:100%; vertical-align:middle;">

    <div><?php if (tep_not_null(MODULE_PAYMENT_PAYPAL_PROCESSING_LOGO)) echo tep_image(DIR_WS_IMAGES . MODULE_PAYMENT_PAYPAL_PROCESSING_LOGO); ?></div>

    <div style="color:#003366"><h1><?php echo MODULE_PAYMENT_PAYPAL_TEXT_TITLE_PROCESSING . tep_image(DIR_WS_MODULES .'payment/paypal/images/period_ani.gif'); ?></h1></div>

    <div style="margin:10px;padding:10px;"><?php echo MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION_PROCESSING?></div>

    <div style="margin:10px;padding:10px;"><?php echo tep_image_submit('button_ppcheckout.gif', MODULE_PAYMENT_PAYPAL_IMAGE_BUTTON_CHECKOUT); ?></div>

  </td></tr>

</table>

<?php echo $this->formFields()."\n"; ?>

</body></html>

<?php require(DIR_WS_MODULES . 'payment/paypal/application_bottom.inc.php'); ?>

 

That right?

Edited by Jezthomp
Link to comment
Share on other sites

There is no $order_total in this file.....?

 

 

you view the source of the PayPal checkout splash page for the info being passed to paypal, or you also look at the table orders_session_info.

 

Is it only the PayPal payment module your having problems with?

 

if you wanted to disable calling the ccgv function then in paypal/catalog/checkout_process.inc.php, comment '//' out the $order_total lines.

 

Are you applying a ccgv voucher for these payments? do these ccgv vouchers make the order total amount zero?

Edited by npereira
Link to comment
Share on other sites

its a bit hard to say, there is an $order_totals in checkout_process; is the order appearing in the admin? what's the total amount shown there? you may also have to look at the database table orders_session_info via phpMyAdmin to see what values are being stored for each particular order etc...

"Any fool can know. The point is to understand." -- Albert Einstein

Link to comment
Share on other sites

Order session info shows 0's:

5dc683d55495ee29a53bdbe697d83197 45 paypal PayPal 0.00 CAD 0.00000000 48 48 english 1 CAN 1.00000000 Dane O'Neill physical

690c060af5a755581aa04ef810ccc576 48 paypal PayPal 0.00 CAD 0.00000000 24 24 english 1 CAN 1.00000000 Nelson Pereira physical

f9873d10932fdfb56108fd9aa3ad601e 44 paypal PayPal 0.00 CAD 0.00000000 48 48 english 1 CAN 1.00000000 Dane O'Neill physical

 

What is going on?

 

 

its a bit hard to say, there is an $order_totals in checkout_process; is the order appearing in the admin? what's the total amount shown there? you may also have to look at the database table orders_session_info via phpMyAdmin to see what values are being stored for each particular order etc...

Link to comment
Share on other sites

Ok,

 

So I have removed all code for the CCGV contrib and am uploading the modified files now, will tell you if it works without the CCGV mod installed.

 

Order session info shows 0's:

      5dc683d55495ee29a53bdbe697d83197 45 paypal PayPal 0.00 CAD 0.00000000 48 48 english 1 CAN 1.00000000 Dane O'Neill physical

      690c060af5a755581aa04ef810ccc576 48 paypal PayPal 0.00 CAD 0.00000000 24 24 english 1 CAN 1.00000000 Nelson Pereira physical

      f9873d10932fdfb56108fd9aa3ad601e 44 paypal PayPal 0.00 CAD 0.00000000 48 48 english 1 CAN 1.00000000 Dane O'Neill physical

 

What is going on?

Link to comment
Share on other sites

Ok, This did not help since now, my whole OSC is screwed up, so I restore the backup and im back with the same issue again of the amount not getting sent to Paypal

 

 

Ok,

 

So I have removed all code for the CCGV contrib and am uploading the modified files now, will tell you if it works without the CCGV mod installed.

Link to comment
Share on other sites

Somehow, OSC is passing all 0's to paypal.

 

What is the sequence of function that it goes through after you confirm the Check out "checkout_confirmation.php" ? It has to be something after this, because the order in the admin shows the proper amount and all, but what is being stored in the session and passed to Paypal is all 0's

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...