diff --git a/tests/Stubs/VaultExpiringStub.php b/tests/Stubs/VaultExpiringStub.php new file mode 100644 index 0000000..68bfd4f --- /dev/null +++ b/tests/Stubs/VaultExpiringStub.php @@ -0,0 +1,42 @@ +'; + + foreach ($cards as $card) { + $receipt = $card->receipt(); + $data = $receipt->read('data'); + $expdate = $data['expiry_date']['year'].$data['expiry_date']['month']; + + $response .= ''; + $response .= ''.$receipt->read('key').''; + $response .= 'cc'; + $response .= ''.$expdate.''; + $response .= ''.$data['masked_pan'].''; + $response .= ''.$data['crypt'].''; + $response .= ''; + } + + $response .= ''; + $response .= '001'; + $response .= 'Successfully located '.count($cards).' expiring cards.'; + $response .= ''.date('Y-m-d').''; + $response .= ''.date('h:i:s').'true'; + $response .= ''; + $response .= ''; + $response .= 'true'; + $response .= ''; + + return $response; + } +} \ No newline at end of file