Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

No Amount Passed to PayPal
 
groover
Jr. Member
 
Total Posts:  14
Joined:  2008-03-31
 

I am using version 1.0. I placed a test order using PayPal standard but when I arrived at the PayPal site the amount was zero. PayPal was prompting me to enter an amount. When I closed the PayPal window (I didn’t complete the purchase) the store is showing the sale was made.

1. Why wasn’t the amount passed to PayPal?

2. Why doesn’t the store use the PayPal IPN feature to decide if the sale was made? E.g. the dashboard shows total sales of $9.95, but I haven’t received any money.

I’m sure I have set up my store incorrectly. Here are my settings:

System -> Configuration -> PayPal Accounts -> Website Payments Standard

Business Name: <my business name>
Business Account: <email address of my paypal account>
PayPal Logo Image:
Sandbox Flag: No
Debug Flag: No

System -> Configuration -> Payment Methods -> PayPal Standard (Website Payments Standard)

Enabled: Yes
Title: PayPal Standard
Payment Action: Sale
Type: Instant Payment Notification (IPN)
New Order Status: Processing
Transaction Type: Aggregate Order
Payment from applicable countries: All Allowed Countries
Payment from Specific countries: <box greyed out>
Sort Order:

Any ideas?

Andy

 
Magento Community Magento Community
Magento Community
Magento Community
 
PitchOu
Member
 
Total Posts:  39
Joined:  2008-02-04
Villeneuve d'Ascq, France
 

I have the same problem, I managed to identify the conditions to make it appear :

- when I make an order using an existing user account the amount is tranferred to Paypal correctly, here is the Paypal redirect code :

<html><body>Vous allez être redirigé vers Paypal dans quelques secondes.<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" id="paypal_standard_checkout" name="paypal_standard_checkout" method="POST"><input id="business" name="business" value="contact@theclimbingshop.com" type="hidden"/>
<input id="return" name="return" value="http://www.theclimbingshop.com/shop/paypal/standard/success/" type="hidden"/>
<input id="cancel_return" name="cancel_return" value="http://www.theclimbingshop.com/shop/paypal/standard/cancel/" type="hidden"/>
<input id="notify_url" name="notify_url" value="http://www.theclimbingshop.com/shop/paypal/standard/ipn/" type="hidden"/>
<input id="invoice" name="invoice" value="100000012" type="hidden"/>
<input id="currency_code" name="currency_code" value="EUR" type="hidden"/>
<input id="address_override" name="address_override" value="1" type="hidden"/>
<input id="first_name" name="first_name" value="david" type="hidden"/>
<input id="last_name" name="last_name" value="JOHN" type="hidden"/>
<input id="address1" name="address1" value="1 rue test” type="hidden"/>
<input id="address2" name="address2" value="” type="hidden"/>
<input id="city" name="city" value="Lille" type="hidden"/>
<input id="state" name="state" value="” type="hidden"/>
<input id="country" name="country" value="FR" type="hidden"/>
<input id="zip" name="zip" value="59000" type="hidden"/>
<input id="cmd" name="cmd" value="_ext-enter" type="hidden"/>
<input id="redirect_cmd" name="redirect_cmd" value="_xclick" type="hidden"/>
<input id="item_name" name="item_name" value="THE CLIMBING SHOP” type="hidden"/>
<input id="amount" name="amount" value="234.11" type="hidden"/>
<input id="tax" name="tax" value="45.89" type="hidden"/>
</form><script type="text/javascript\">document.getElementById("paypal_standard_checkout").submit();</script></body></html>

- when I make an order while creating the user account on the onepage checkout the amount and user information ARE NOT tranferred to Paypal, see the code :

<html><body>Vous allez être redirigé vers Paypal dans quelques secondes.<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" id="paypal_standard_checkout" name="paypal_standard_checkout" method="POST"><input id="business" name="business" value="contact@theclimbingshop.com" type="hidden"/>
<input id="return" name="return" value="http://www.theclimbingshop.com/shop/paypal/standard/success/" type="hidden"/>
<input id="cancel_return" name="cancel_return" value="http://www.theclimbingshop.com/shop/paypal/standard/cancel/" type="hidden"/>
<input id="notify_url" name="notify_url" value="http://www.theclimbingshop.com/shop/paypal/standard/ipn/" type="hidden"/>
<input id="invoice" name="invoice" value="100000011" type="hidden"/>
<input id="currency_code" name="currency_code" value="EUR" type="hidden"/>
<input id="address_override" name="address_override" value="1" type="hidden"/>
<input id="first_name" name="first_name" value="” type="hidden"/>
<input id="last_name" name="last_name" value="” type="hidden"/>
<input id="address1" name="address1" value="” type="hidden"/>
<input id="address2" name="address2" value="” type="hidden"/>
<input id="city" name="city" value="” type="hidden"/>
<input id="state" name="state" value="” type="hidden"/>
<input id="country" name="country" value="” type="hidden"/>
<input id="zip" name="zip" value="” type="hidden"/>
<input id="cmd" name="cmd" value="_ext-enter" type="hidden"/>
<input id="redirect_cmd" name="redirect_cmd" value="_xclick" type="hidden"/>
<input id="item_name" name="item_name" value="THE CLIMBING SHOP” type="hidden"/>
<input id="amount" name="amount" value="0.00" type="hidden"/>
</form><script type="text/javascript\">document.getElementById("paypal_standard_checkout").submit();</script></body></html>

But the user account is created somewhere (too late ?), I receive the new account mail.

This is really a big problem, I won’t be able to open my shop at the planned date if this one is not fixed :-(((((

Varien, we need your help !

 
Magento Community Magento Community
Magento Community
Magento Community
 
PitchOu
Member
 
Total Posts:  39
Joined:  2008-02-04
Villeneuve d'Ascq, France
 

I made another test, the amount and user information are transfered to paypal when ordering as guest.

So the problem occurs only when ordering with an user account created on onepage checkout.

 
Magento Community Magento Community
Magento Community
Magento Community
 
groover
Jr. Member
 
Total Posts:  14
Joined:  2008-03-31
 

Yes! I remember - I was doing the same thing at the time (creating an account during placing an order).

 
Magento Community Magento Community
Magento Community
Magento Community
 
groover
Jr. Member
 
Total Posts:  14
Joined:  2008-03-31
 

Reported as bug #4525 (http://www.magentocommerce.com/bug-tracking/issue?issue=1826)

Andy

 
Magento Community Magento Community
Magento Community
Magento Community
 
PitchOu
Member
 
Total Posts:  39
Joined:  2008-02-04
Villeneuve d'Ascq, France
 

Thanks Groover. I had already opened the bug #4522 ( http://www.magentocommerce.com/bug-tracking/issue?issue=1825 ). It’s a very blocking problem, I’m surprised nobody pointed it out yet.

I had a look to app/code/core/Mage/Checkout/Model/Type/Onepage.php and app/code/core/Mage/Paypal/Model/Standard.php but I didn’t manage to find the problem :-(((

 
Magento Community Magento Community
Magento Community
Magento Community
 
PitchOu
Member
 
Total Posts:  39
Joined:  2008-02-04
Villeneuve d'Ascq, France
 

Some news about this problem.

At the end of the checkout process (in app/code/core/Mage/Checkout/Model/Onepage.php / saveOrder() ) there’s some code to log in the user based on the user information in session :

if ($this->getQuote()->getCheckoutMethod()==’register’) {
Mage::getSingleton(’customer/session’)->loginById($customer->getId());
}

This is the root cause of the problem. If I comment the line out all information are sent to Paypal (but of course back to the shop the user is not logged in).

It seems that in Paypal code the information are retrieved from session, but since the user has been logged in no information are available ? (getCheckout() in app/code/core/Mage/Paypal/Model/Standard/php : return Mage::getSingleton(’checkout/session’); ).

 
Magento Community Magento Community
Magento Community
Magento Community
 
Stromberg
Member
 
Total Posts:  46
Joined:  2008-02-22
Hessen, Germany
 

any news for this yet? this is a very big problem for me too!

 
Magento Community Magento Community
Magento Community
Magento Community
 
PitchOu
Member
 
Total Posts:  39
Joined:  2008-02-04
Villeneuve d'Ascq, France
 

The bug has been assigned, I got an email from Varien a few hours ago saying that they’re working on it.

I hope they will manage to fix this quickly grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
Stromberg
Member
 
Total Posts:  46
Joined:  2008-02-22
Hessen, Germany
 

ok thanks...hope this will be fixed soon!

 
Magento Community Magento Community
Magento Community
Magento Community
 
ukdazza
Guru
 
Total Posts:  308
Joined:  2008-04-16
 

any news on this??

 
Magento Community Magento Community
Magento Community
Magento Community
 
PitchOu
Member
 
Total Posts:  39
Joined:  2008-02-04
Villeneuve d'Ascq, France
 

Magento team told me that the problem has been fixed

I don’t know what release includes the fix, I tested the svn latest but without success. I asked them here what to test exactly :

http://www.magentocommerce.com/bug-tracking/issue?issue=1825

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top