2014-03-19 22:46:59 +00:00
|
|
|
jQuery( function( $ ) {
|
|
|
|
$( '.wc-credit-card-form-card-number' ).payment( 'formatCardNumber' );
|
|
|
|
$( '.wc-credit-card-form-card-expiry' ).payment( 'formatCardExpiry' );
|
|
|
|
$( '.wc-credit-card-form-card-cvc' ).payment( 'formatCardCVC' );
|
2013-09-27 12:22:04 +00:00
|
|
|
|
2014-03-19 22:46:59 +00:00
|
|
|
$( 'body' )
|
|
|
|
.on( 'updated_checkout', function() {
|
|
|
|
$( '.wc-credit-card-form-card-number' ).payment( 'formatCardNumber' );
|
|
|
|
$( '.wc-credit-card-form-card-expiry' ).payment( 'formatCardExpiry' );
|
|
|
|
$( '.wc-credit-card-form-card-cvc' ).payment( 'formatCardCVC' );
|
2013-09-27 12:22:04 +00:00
|
|
|
});
|
|
|
|
} );
|