Title: Validation Error when PayPal also enabled.
Last modified: November 4, 2018

---

# Validation Error when PayPal also enabled.

 *  Resolved [jamesmb85](https://wordpress.org/support/users/jamesmb85/)
 * (@jamesmb85)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/validation-error-when-paypal-also-enabled/)
 * We have just updated from version 2.0.4 to 2.0.8 and there is an issue when the
   PayPal gateway is also enabled.
 * If the PayPal option is selected and ‘proceed to paypal’ button clicked 2 secure
   trading errors are displayed. ‘The expiry month you have provided is invalid’
   and also ‘The expiry year you have provided is invalid’
 * On submission of the PayPal option it seems to be trying to check for a valid
   date in the secure trading form even when this is not the payment method selected.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [tjobbe](https://wordpress.org/support/users/tjobbe/)
 * (@tjobbe)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/validation-error-when-paypal-also-enabled/#post-10882767)
 * I have the same, also with stripe.
 * Have disabled the plugin altogether now and I’m using stripe and paypal exclusively.
 *  [idave2012](https://wordpress.org/support/users/idave2012/)
 * (@idave2012)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/validation-error-when-paypal-also-enabled/#post-10907659)
 * The plugin does not check to see if it has been selected for payment. To fix 
   this, add the following to line 58 of _/secure-trading-gateway-for-woocommerce/
   assets/frontend/js/main.js_
 * `if(('.payment_method_st_gateway').is( ':checked' )) {`
 * and a closing brace to line 75
 * `}`
 * The following can also be implemented in main.min.js but will require you to 
   know what you are looking at.
 *  [tjobbe](https://wordpress.org/support/users/tjobbe/)
 * (@tjobbe)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/validation-error-when-paypal-also-enabled/#post-10907705)
 * [@idave2012](https://wordpress.org/support/users/idave2012/) – superb, will try
   this next week.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation Error when PayPal also enabled.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/secure-trading-gateway-for-woocommerce_d4adba.
   svg)
 * [Trust Payments Gateway for WooCommerce](https://wordpress.org/plugins/secure-trading-gateway-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [tjobbe](https://wordpress.org/support/users/tjobbe/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/validation-error-when-paypal-also-enabled/#post-10907705)
 * Status: resolved