Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Diego

    (@daigo75)

    The plugin relies on WPML to determine the language to use for the gateway. It uses the value of ICL_LANGUAGE_CODE definition and, if such language code is amongst the languages supported by Skrill, the plugin sends it to the remote server. If WPML is not installed, then English is always used.

    If you wish to intercept the data before it’s passed to Skrill to change the language passed to it, you can do it by writing a filter for the wc_gateway_skrill_form_fields hook. The filter will receive an array with the data that is going to be passed to Skrill, the language can be set by using the language key.

    Further reading
    Skrill Payment Gateway Integration Guide. You can refer to Parameters to be posted to the Skrill Gateway paragraph for a list of the supported language codes.

    Plugin Author Diego

    (@daigo75)

    Correction: I wrote “If WPML is not installed, then English is always used“, but this is incorrect. If WPML is not installed, then the default language set in plugin configuration is used.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Skrill Gateway showing the right Language automatically?’ is closed to new replies.