Skip to content

Commit

Permalink
Update PaymentLogic.php #19
Browse files Browse the repository at this point in the history
Added card expiration date while sending stored card information #19
  • Loading branch information
skulkarn authored and skulkarn committed Jun 6, 2014
1 parent 148ce40 commit 8ada175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/local/Litle/CreditCard/Model/PaymentLogic.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public function getTokenInfo($payment)
$retArray['type'] = $this->litleCcTypeEnum($vaultCard);
$retArray['litleToken'] = $vaultCard->getToken();
$retArray['cardValidationNum'] = $payment->getCcCid();

preg_match('/\d\d(\d\d)/', $vaultCard->getExpirationYear(), $expYear);
$retArray['expDate'] = sprintf('%02d%02d', $vaultCard->getExpirationMonth(), $expYear[1]);
$payment->setCcLast4($vaultCard->getLast4());
$payment->setCcType($vaultCard->getType());

Expand Down

0 comments on commit 8ada175

Please sign in to comment.