Square Add-on Deprecation issue

Designer
Alates United Kingdom
Liige alates

I hope one of you with a cleverer brain than mine can help me resolve this. I have reached out to the developer of the addon without a response.

Please see the image attached.

There is a coding error I could do with help to resolve.

Also when I do go to checkout, it passes me through to Square correctly, however it does not pass through the shipping cost, but I presume that's related to the error, too.

Moderator
Alates Lithuania
Liige alates

Topic moved to specific addon. Maybe the addon author will spot this.

tim
Founder
Alates Sweden
Liige alates
tim

The in_geo_zone() function was changed in 2.5.x. The solution is provided in the deprecation notice text.

Designer
Alates United Kingdom
Liige alates

OK, I don't understand what it's asking me to do.

I have purchased the Paypal Add-On now someone has convinced me that it would work with 2.5.5

tim
Founder
Alates Sweden
Liige alates
tim

Replace the "If not in geo zone" part with this for 2.5+:


        if ($this->settings['geo_zone_id'] && !reference::country($customer['country_code'])->in_geo_zone($this->settings['geo_zone_id'], $customer)) {
          return;
        }```
Teie
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.