Forums / Built-in Shipping and Payment Modules / Paypal IPN check out always shows 0.0

Paypal IPN check out always shows 0.0

Locked

Started by bhavi on 24 Nov 2007, 7:27 PM · Views: 1,745

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
24 Nov 2007, 7:27 PM
#1
bhavi avatar

bhavi

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Paypal IPN check out always shows 0.0

I new to zen cart and i'm setting up a site.
While testing I found, paypal IPN check out is showing 0.0 always....

<input type="hidden" name="amount" value="0.00" /> <input type="hidden" name="shipping" value="0.00" /> <input type="hidden" name="tax" value="0.00" /> <input type="hidden" name="tax_cart" value="0.00" />

Looking for help from guys here.......

24 Nov 2007, 7:31 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Paypal IPN check out always shows 0.0

What is your URL?
What currencies do you have configured?
What currency is selected in your PayPal module?

https://www.zen-cart.com/tutorials/index.php?article=96

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2007, 7:45 PM
#3
bhavi avatar

bhavi

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Re: Paypal IPN check out always shows 0.0

Hi,
Thanks for quick reply.
URL is http://bubble gum goods.com
Currency is USD and is configured correctly in admin.
I checked the manual and tried with all the steps.
Still the problem persists.

Thanks for the help

Thanks

24 Nov 2007, 7:54 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Paypal IPN check out always shows 0.0

Does this happen if you enable and test using check/money-order as payment module?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2007, 8:05 PM
#5
bhavi avatar

bhavi

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Re: Paypal IPN check out always shows 0.0

The Check/Money Order option is working fine.

The price amount is being properly displayed in the paypal IPN checkout page"Step 3 of 3 - Order Confirmation".
But when click to check out. In the paypal window its showing 0.0
i.e. the hidden data (price) being sent is showing zero.

The code shows like

    $optionsTrans = array(
                   'currency_code' => $my_currency,
                   'paypal_order_id' => $paypal_order_id,
                   //'invoice' => '',
                   'item_name' => MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE,
                   'item_number' => 'Store Receipt',
                   //'num_cart_items' => sizeof($order->products),
                   'upload' => sizeof($order->products),
                   'amount' => number_format($this->transaction_amount, $currencies->get_decimal_places($my_currency)),
                   'shipping' => '0.00',
                    );

Will the change of variable affect the price??

24 Nov 2007, 8:13 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Paypal IPN check out always shows 0.0

bhavi:

Will the change of variable affect the price??Which variable?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2007, 8:21 PM
#7
bhavi avatar

bhavi

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Re: Paypal IPN check out always shows 0.0

//'invoice' => '',
'item_name' => MODULE_PAYMENT_PAYPAL_PURCHASE_DECRIPTION_TITLE,
'item_number' => 'Store Receipt',
//'num_cart_items' => sizeof($order->products),
'upload' => sizeof($order->products),

Commented out
//'invoice' => '',

changed
//'num_cart_items' to
'upload'

Not sure if its done automatically [;)]

24 Nov 2007, 8:24 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Paypal IPN check out always shows 0.0

I'm not sure why you'd be doing that.
But, no, I wouldn't expect that to change the values to 0.

What other changes are you making to the module, and why?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2007, 8:29 PM
#9
bhavi avatar

bhavi

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Re: Paypal IPN check out always shows 0.0

Other change is

$optionsShip = array(
               //'address_override' => MODULE_PAYMENT_PAYPAL_ADDRESS_OVERRIDE,
               'no_shipping' => MODULE_PAYMENT_PAYPAL_ADDRESS_REQUIRED,
               );

These changes were done by other programmer who is no more available.
No idea why these changes were.... :(

24 Nov 2007, 8:36 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Paypal IPN check out always shows 0.0

When did the problems start happening?
When were the changes made?
What happens if you undo the changes?
Were there problems "before", and your programmer was following instructions from you to fix something?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Nov 2007, 8:40 PM
#11
bhavi avatar

bhavi

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Re: Paypal IPN check out always shows 0.0

The problem is I have no answer for all the questions :(

I started getting error for the past 3 days. Reason: dont know!!!
I dont know if those changes were there even when things were working.

So, how to debug the issue from here.?