Merge pull request #10934 from rodrigoprimo/fix-credit-card-js

Fix credit card JS validation
This commit is contained in:
Claudio Sanches 2016-05-17 17:34:56 -03:00
commit 287fc29994
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ class WC_Payment_Gateway_CC extends WC_Payment_Gateway {
* @since 2.6.0
*/
public function form() {
$html = '';
wp_enqueue_script( 'wc-credit-card-form' );
$fields = array();
$cvc_field = '<p class="form-row form-row-last">