Merge pull request #15214 from woocommerce/fix/15191

Update jquery payment to v3
This commit is contained in:
Claudiu Lodromanean 2017-05-22 11:13:22 -07:00 committed by GitHub
commit 2a19598930
3 changed files with 2 additions and 16 deletions

14
assets/js/jquery-payment/jquery.payment.js Normal file → Executable file
View File

@ -22,13 +22,6 @@ jQuery( function( $ ) {
$.payment.cards = cards = [
{
type: 'visaelectron',
patterns: [4026, 417500, 4405, 4508, 4844, 4913, 4917],
format: defaultFormat,
length: [16],
cvcLength: [3],
luhn: true
}, {
type: 'maestro',
patterns: [5018, 502, 503, 506, 56, 58, 639, 6220, 67],
format: defaultFormat,
@ -49,13 +42,6 @@ jQuery( function( $ ) {
length: [16],
cvcLength: [3],
luhn: true
}, {
type: 'elo',
patterns: [4011, 4312, 4389, 4514, 4573, 4576, 5041, 5066, 5067, 509, 6277, 6362, 6363, 650, 6516, 6550],
format: defaultFormat,
length: [16],
cvcLength: [3],
luhn: true
}, {
type: 'visa',
patterns: [4],

2
assets/js/jquery-payment/jquery.payment.min.js vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

View File

@ -201,7 +201,7 @@ class WC_Frontend_Scripts {
'jquery-payment' => array(
'src' => self::get_asset_url( 'assets/js/jquery-payment/jquery.payment' . $suffix . '.js' ),
'deps' => array( 'jquery' ),
'version' => '1.4.1',
'version' => '3.0.0',
),
'photoswipe' => array(
'src' => self::get_asset_url( 'assets/js/photoswipe/photoswipe' . $suffix . '.js' ),