Whatever changes were introduced in 2Checkout, shipping is now being ignored when forwarding the payment to 2Checkout. I have reverted to the 3.9 version of 2CO and it seems to be working with the rest of Ubercart still at 3.10. Can someone make a patch?

#7 03-form.png202.04 KBfatmarker
#7 02-2co.png34.9 KBfatmarker
#7 01-review.png61.19 KBfatmarker
Members fund testing for the Drupal project. Drupal Association Learn more


fatmarker created an issue. See original summary.

TR’s picture

Component: Fulfillment » Payment
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

https://www.drupal.org/project/ubercart/releases/7.x-3.10 shows the changes between 7.x-3.9 and 7.x-3.10

The only non-trivial change to uc_2checkout was made in #2128957: 2Checkout payment improvements. You can reverse that patch to see if this fixes the problem for you, but looking through that patch I don't see anything that has to do with shipping charges. My understanding is that 2Checkout changed its API, which is why this patch was needed, so I'm surprised to hear 7.x-3.9 was working for you - that's not what we've heard from other 2Checkout users.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided.

fatmarker’s picture

I just tested it again, and the problem exists in both 3.9 and 3.10. Can anyone confirm that it IS working properly? Are there some new configuration options I need to change?

fatmarker’s picture

Priority: Normal » Major
Status: Closed (cannot reproduce) » Active
TR’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I still know next-to-nothing about this problem. What amount gets charged? Give precise examples. Is the order total (which includes shipping) being charged? Order total is what is sent to 2Checkout, so I would find it very strange indeed if 2Checkout charged something other than the order total. When you say "shipping is now being ignored" what does that mean? Are you talking about some breakdown of charges that you view on the 2Checkout end, or are you saying the amount received for the order doesn't match the order total so that orders are never put into a payment received state?

fatmarker’s picture

61.19 KB
34.9 KB
202.04 KB

Sorry for not being clearer. Here are some pictures:

Ubercart Review
1: My order total after shipping is 17.60 €

Ubercart Review
2: Checkout using 2Co charges only 15.00 €

Ubercart Review
3: The form HTML reveals the total value equals 17.60 €

Apparently 2co is not taking the form’s total value, rather it’s adding up the line items, of which I do not see one for shipping.

I hope the problem makes sense now.

TR’s picture

Title: 2Checkout not posting shipping cost » 2Checkout not posting shipping or tax
Version: 7.x-3.10 » 7.x-3.x-dev
Assigned: Unassigned » TR
Status: Postponed (maintainer needs more info) » Active

OK, I understand what is going on now and have identified how to fix the problem. The contributed patch from #2128957: 2Checkout payment improvements actually passes some wrong parameters to 2Checkout ('total' is not used for instance - it says that in the documentation!) I don't know how multiple users could have reported that patch as working for them, unless they didn't use tax or shipping at all...

I will work on a new fix later today. I don't have a 2Checkout account, so I will need to you test the patch when I upload it and verify that it works for you.

ilya’s picture

Has this issue ever been fixed? I'm having the same problem with shipping costs not passing to 2CO server. Another issue is - no matter what currency I choose in the drop-down list, 2CO automatically detects the currency of sale, so I can't force the system to check out in a specific currency.
Any thoughts?