Git Product home page Git Product logo

Comments (6)

markusbrunke avatar markusbrunke commented on June 6, 2024

Instead of having a fallback method for country is not ISO, we should simply make sure no value is posted to Reepay

from reepay-woocommerce-payment.

dimaspolohov avatar dimaspolohov commented on June 6, 2024

@markusbrunke Hi, for create the fallback we need to receive error code, I don't see 'customer already exist' error in the errors list https://api.reepay.com/v1/error_codes
About Country codes - Woocommerce return code in ISO 3166-1 alpha-2 and I what you API use same format, we can add condition for country arg https://wp-kama.ru/plugin/woocommerce/function/WC_Countries::country_exists and clear

from reepay-woocommerce-payment.

markusbrunke avatar markusbrunke commented on June 6, 2024

@dimaspolohov Forget customer already exist for now.

The issue with country is not ISO, is that some merchants are using plugins that remove the country field from WooCommerce checkout meaning, and in these cases, they receive this error. In the past, we have just asked the merchant to enable the country field again and hide it with CSS, but my guess is we might be sending some default text in the country field, which triggers the country is not ISO error.

from reepay-woocommerce-payment.

dimaspolohov avatar dimaspolohov commented on June 6, 2024

@markusbrunke We can send null or empty value for this.

from reepay-woocommerce-payment.

markusbrunke avatar markusbrunke commented on June 6, 2024

@dimaspolohov Please send empty value for this :-)

from reepay-woocommerce-payment.

dimaspolohov avatar dimaspolohov commented on June 6, 2024

@markusbrunke Hi, That commited

from reepay-woocommerce-payment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.