Open bdgeorge opened 10 years ago
It's only a warning until the API options are configured, but when first activated we get the following annoying notice message:
This is because the constant is only defined after the api options have been set
if ( ! empty( $options['stripe_api_switch'] ) ) { if ( $options['stripe_api_switch'] === 'Yes') { Stripe::setApiKey( $options['stripe_test_api'] ); define( 'WP_STRIPE_KEY', $options['stripe_test_api_publish'] ); } else { Stripe::setApiKey( $options['stripe_prod_api'] ); define( 'WP_STRIPE_KEY', $options['stripe_prod_api_publish'] ); } }
Thanks for the bug report!
Yep, just got this on first install.
It's only a warning until the API options are configured, but when first activated we get the following annoying notice message:
This is because the constant is only defined after the api options have been set