Square Add-on Deprecation issue

Designer
Od United Kingdom
Člen od júl 2024

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
Od Lithuania
Člen od mar 2016

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

tim
Founder
Od Sweden
Člen od máj 2013
tim

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

Designer
Od United Kingdom
Člen od júl 2024

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
Od Sweden
Člen od máj 2013
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;
        }```
vy
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.