credit-card-form.js 588 B

12345678910111213
  1. jQuery( function( $ ) {
  2. $( '.wc-credit-card-form-card-number' ).payment( 'formatCardNumber' );
  3. $( '.wc-credit-card-form-card-expiry' ).payment( 'formatCardExpiry' );
  4. $( '.wc-credit-card-form-card-cvc' ).payment( 'formatCardCVC' );
  5. $( document.body )
  6. .on( 'updated_checkout wc-credit-card-form-init', function() {
  7. $( '.wc-credit-card-form-card-number' ).payment( 'formatCardNumber' );
  8. $( '.wc-credit-card-form-card-expiry' ).payment( 'formatCardExpiry' );
  9. $( '.wc-credit-card-form-card-cvc' ).payment( 'formatCardCVC' );
  10. })
  11. .trigger( 'wc-credit-card-form-init' );
  12. } );