Title: Checkout Fields Validation
Last modified: September 24, 2020

---

# Checkout Fields Validation

 *  Resolved [andyc125](https://wordpress.org/support/users/andyc125/)
 * (@andyc125)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/)
 * Dear All,
 * After installing the plugin (currently in a sandbox environment), the checkout
   fields validation happens only after the payment. This is resulting in you having
   to amend any missing entries after the payment and then click the Buy Now button.
 * Is there anyway to have the checkout fields validation prior to the payment?
 * Kind regards,
 * Andy

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

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13449688)
 * Hi [@andyc125](https://wordpress.org/support/users/andyc125/),
 * The validation of checkout fields happens before the form is submitted.
 * It’s not done before because this plugin has the ability to auto-populate billing
   and shipping fields using information from the customer’s Apple Pay, GPay, or
   PayPal account.
 * Not having some billing info filled out shouldn’t prevent the Apple wallet from
   opening for example because the customer might want to use their already saved
   shipping address in the wallet.
 * Kind regards,
 *  Thread Starter [andyc125](https://wordpress.org/support/users/andyc125/)
 * (@andyc125)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13450193)
 * Thank you for the quick response.
    I understand that it works well with the billing
   address, however, I have the same problem with the – agree to T&Cs – email address
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13450220)
 * [@andyc125](https://wordpress.org/support/users/andyc125/),
 * The Terms and conditions are validated as well and the checkout form is not submitted
   if it’s not checked.
 * If the email address is required then the form won’t submit until it’s populated.
 * There’s even a notice that appears telling the customer to select the terms and
   conditions. Perhaps I am not understanding what your issue is? Your customer 
   should have the opportunity to populate any missing data before the form is submitted
   and that’s exactly what the Braintree plugin does.
 * A screen recording or some screenshots might be helpful.
 * Kind Regards,
 *  Thread Starter [andyc125](https://wordpress.org/support/users/andyc125/)
 * (@andyc125)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13450855)
 * Hi there,
 * The auto-populating of the billing address and email works well.
 * However, if I do not agree to the T&C’s on the check out page, I will have to
   do that after the payment and then click the buy now button.
 * Here is the link to the screen recording that demonstrates the issue:
 * Kind regards,
 * Andy
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13451084)
 * Hi [@andyc125](https://wordpress.org/support/users/andyc125/),
 * Thank you for providing that screenshare. That’s how the plugin has been coded.
 * The T and C is not validated until after the payment nonce is received from Braintree
   which occurs when the wallet pop up closes.
 * If the t and c is not checked then a notice will be displayed letting the customer
   know they need to check that box. The customer doesn’t have to go through the
   payment process again, just check the box then click the place order button.
 * What is your concern with how it currently works? This plug-in has an exceptionally
   high conversion rate because we have spent a lot of time working on how to check
   out validation should function.
 * Kind regards,
    -  This reply was modified 5 years, 7 months ago by [Clayton R](https://wordpress.org/support/users/mrclayton/).
 *  Thread Starter [andyc125](https://wordpress.org/support/users/andyc125/)
 * (@andyc125)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13452921)
 * Hi there,
 * Firstly, your plugin is by far the best Braintree plugin available.
 * With regards to the T&Cs checkbox, I would think that customers find it quite
   confusing that the order is not completed once the payment has been made. If 
   somebody leaves the website after the payment process without ticking the T&Cs
   checkbox and the buy now button, I have received the payment but no order.
 * Therefore, I would be more than grateful if there would be the possibility to
   ensure that the checkbox is checked prior to the payment.
 * Kind regatrds,
 * Andy
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13454264)
 * Hi [@andyc125](https://wordpress.org/support/users/andyc125/)
 * I’m glad that you like the plugin.
 * No payment is made until all required fields are filled out. What gave you the
   impression the payment was being made?
 * Only once all required fields are filled out does the actual transaction get 
   created when the checkout form is submitted. Everything else up to that point
   is pre-payment processing.
 * For example if a customer goes through the PayPal flow and the pop up closes 
   but they forget to check the T and C then they leave the checkout page for whatever
   reason then no transaction is created. You will know a transaction is created
   because you will be redirected to the order received page.
 * Kind regards,
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13460619)
 * Hi [@andyc125](https://wordpress.org/support/users/andyc125/),
 * I wanted to provide an update on your request. I did some testing and it looks
   like the Terms and Conditions notice is not being displayed under certain conditions
   and I believe that explains your request.
 * What should happen is if the customer goes through the PayPal flow, after the
   pop-up closes and the T & C is not checked there is a message displayed notifying
   the customer they haven’t checked the T & C. The next version will correct that.
 * Update: to add further, if the order requires shipping then the form won’t submit
   automatically with PayPal because the customer should have the opportunity to
   select a new shipping method based on the address data they chose in the PayPal
   pop-up. It would be very bad to just submit the form without allowing the customer
   to see their new order total and shipping methods based on the shipping address
   they selected in the pop-up.
 * Kind Regards,
    -  This reply was modified 5 years, 7 months ago by [Clayton R](https://wordpress.org/support/users/mrclayton/).

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

The topic ‘Checkout Fields Validation’ is closed to new replies.

 * ![](https://ps.w.org/woo-payment-gateway/assets/icon-256x256.png?rev=2142799)
 * [Payment Plugins Braintree For WooCommerce](https://wordpress.org/plugins/woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/checkout-fields-validation/#post-13460619)
 * Status: resolved