Author Topic: Google Checkout - Nbill Quantity field X Total = google total, also no tax.  (Read 2453 times)

Offline bender

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Everything seems to be working in Nbill, but once the client gets to Google the payment total is wrong.

I have been having the following problem with the Google check option. 

1)  Quantity field is multiplied by the Total. 
2) Tax is not being added to Google order.

      I.E. 100 widgets @ $.03 = $3.00 + $0.18 tax on nbill.
      Google total is $300.00


Anyone else have this problem and find a fix?

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
I will look into this, but it might take me longer than normal to respond as I did not write the google checkout gateway (I have spoken to the author of the gateway, but he does not seem interested in supporting it any more).

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Are you using the latest version of the google checkout gateway? I just tried it, and the quantity worked fine for me, although I did have the problem of VAT not being applied. I have asked for support on this from google, as I cannot see anything wrong with the data being sent over by the gateway.

Offline bender

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
I Updated to the newest version and it did not fix. 

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Have you checked everything listed in this post: http://www.nbill.co.uk/forum/index.php/topic,826.0.html? If the problem persists, please raise a support ticket as I will need access to your site to look into the quantity multiplier problem (because I cannot recreate that problem myself).

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
The problem with quantities apparently only occurs when paying an invoice. This is due to a slight inconsistency in the way nBill hands invoice information over to the gateway in comparison with how order forms are handed over, and the fact that google checkout does its own calculation of the total to pay instead of accepting what it is told. To fix this, replace your /components/com_netinvoice/proc/invoices.php file with the attached.

I am awaiting a reply from google checkout support about why VAT is being ignored, as I cannot see anything wrong with what we are sending to google.

[attachment deleted by admin]

Offline david.dana

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
I also had this problem with Google Checkout, but it seems I was only getting it when I had a taxed product on the invoice. Since taxes aren't working with Google Checkout anyway, I'm including tax in the price of the product to get around this for the time being.

Any word yet from Google?

Offline david.dana

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
I was mistaken about seeing the wrong total only on taxed items, it happens on untaxed products too. I switched to the new invoices.php, and that fixed the problem with the wrong total showing up. I'm working around the tax problem by adding sales tax to the income items after they're created, and so far that's working fine, but I'd really like to get a permanent fix.

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
So far, google have said they can find nothing wrong with the code and that is should work! It is still under investigation.

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
This is still being discussed with google - you can follow the progress here: http://groups.google.com/group/google-checkout-api-php/browse_thread/thread/6b35f274016f9a35