Skip to content

Commit 2200268

Browse files
authored
Merge pull request #16 from skyverge/fix-elavon-test-card
Always use the following years date for Elavon card expiration
2 parents 4e59345 + 86f08dc commit 2200268

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

woocommerce-dev-helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function change_elavon_test_values( $defaults, $gateway ) {
160160

161161
if ( $gateway->is_test_environment() ) {
162162

163-
$defaults['expiry'] = '12/19';
163+
$defaults['expiry'] = '12/' . ( date("y") + 1 );
164164
$defaults['account-number'] = '4124939999999990';
165165
}
166166

0 commit comments

Comments
 (0)