paytrail / paytrail-for-woocommerce

Paytrail payment service for WooCommerce
MIT License
4 stars 10 forks source link

Make Merchant ID and Secret key changable through add_filter #170

Open phpgeek opened 2 months ago

phpgeek commented 2 months ago

I am currently investigating which payment gateway we should use for the Finnish market. We have a kind of complex setup, where different orders need to go to different merchants. We using billwerk (formerly reepay) in other countries - and they have the option, that we can add_filter and change the private key before processing the payment. A similar solutions would be perfect in the Paytrail plugin.

I have created a small patch file here: https://phpgeek.dk/add_filters_to_gateway_info.txt

It is only 2 lines of codes that need to be altered to create the support.

I hope you will implement the requested feature - so you do not need to patch after each upgrade of the plugin :)

kotivuori commented 2 months ago

Hi @phpgeek,

Thank you for bringing this to our attention and for providing explanation along with a patch file.

We understand the importance of flexibility in payment gateways for different market needs. While we cannot make any promises at this stage, we will take a closer look at your suggestion.