vyskoczilova / woocommerce-payforpayment

WordPress plugin WooCommerce Pay for Payment
13 stars 10 forks source link

Support for gateways without default option format #33

Closed davdebcom closed 6 years ago

davdebcom commented 6 years ago

Added support for WooCommerce payment gateways (like Mollie Payments for WooCommerce) that use another format for option names, and no 'woocommerce_' prefix. Also, see TODO and please consider adding a warning/notice + stop function execution if the $options variable stays false. That would solve all future fatal errors for gateways with yet again another format.

vyskoczilova commented 6 years ago

@davdebcom Thanks, but you have broken it down for validation and saving. Could you retest it with my update? It's working fine with "normal" WC payment methods, just want to double check that I haven't broked it for yours. Please verify as well saving the correct options when clicked.

I have updated the code and added an admin notice error as you proposed, thanks.

davdebcom commented 6 years ago

Works for me!