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

Paypal IPN check out always shows 0.0

Locked

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,513
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

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,513
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?

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,513
Plugin Contributions:
176

Re: Paypal IPN check out always shows 0.0

bhavi:

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

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,513
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?

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,513
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?

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