Skip to content

Support for gateways without default option format#33

Merged
vyskoczilova merged 2 commits into
vyskoczilova:masterfrom
davdebcom:patch-1
Feb 10, 2018
Merged

Support for gateways without default option format#33
vyskoczilova merged 2 commits into
vyskoczilova:masterfrom
davdebcom:patch-1

Conversation

@davdebcom
Copy link
Copy Markdown
Contributor

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.

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 vyskoczilova merged commit dcd1a10 into vyskoczilova:master Feb 10, 2018
@vyskoczilova
Copy link
Copy Markdown
Owner

@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
Copy link
Copy Markdown
Contributor Author

Works for me!

@davdebcom davdebcom deleted the patch-1 branch February 10, 2018 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants