Closed davdebcom closed 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.
Works for me!
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.