Title: WPML &amp; callbacks
Last modified: February 16, 2023

---

# WPML & callbacks

 *  Resolved [tobiashcpu](https://wordpress.org/support/users/tobiashcpu/)
 * (@tobiashcpu)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/wpml-callbacks/)
 * We noticed that some payment notifications were not being handled correctly by
   the Paytrail for Woocommerce plugin. We are using WPML and found that the payment
   notifications were being sent to our server using this URL:
   /?lang=en/paytrail/
   callback/index&checkout-account=xxxx…The added **lang **parameter in the beginning
   prevented the callback from being handled correctly by the plugin.The plugin 
   seems to use **home_url()** when constructing the callback urls and WPML also
   hooks into the ‘**home_url**‘ filter, adding the language parameter if the current
   language differs from the site’s default language.We can fix this temporarily
   by adding our own custom filter to ‘home_url’ in order to override WPML’s modifications,
   but this should probably be handled internally by the Paytrail for Woocommerce
   plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [loueranta](https://wordpress.org/support/users/loueranta/)
 * (@loueranta)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/wpml-callbacks/#post-16494788)
 * [@tobiashcpu](https://wordpress.org/support/users/tobiashcpu/) Thank you for 
   reporting this. You can track our progress towards a fix here: [https://github.com/paytrail/paytrail-for-woocommerce/issues/83](https://github.com/paytrail/paytrail-for-woocommerce/issues/83)
 *  Plugin Author [loueranta](https://wordpress.org/support/users/loueranta/)
 * (@loueranta)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/wpml-callbacks/#post-16685774)
 * [@tobiashcpu](https://wordpress.org/support/users/tobiashcpu/) This issue was
   fixed in 1.3.3 release

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WPML & callbacks’ is closed to new replies.

 * ![](https://ps.w.org/paytrail-for-woocommerce/assets/icon-256x256.png?rev=2624361)
 * [Paytrail for WooCommerce](https://wordpress.org/plugins/paytrail-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paytrail-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paytrail-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/paytrail-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paytrail-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paytrail-for-woocommerce/reviews/)

## Tags

 * [callback](https://wordpress.org/support/topic-tag/callback/)

 * 2 replies
 * 2 participants
 * Last reply from: [loueranta](https://wordpress.org/support/users/loueranta/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/wpml-callbacks/#post-16685774)
 * Status: resolved