Skip to content

Commit 1070058

Browse files
committed
1 parent 730b7f5 commit 1070058

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Message/DPMAuthorizeRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public function getData()
2929

3030
if ($this->getCard()) {
3131
$data['x_card_num'] = $this->getCard()->getNumber();
32-
$data['x_exp_date'] = $this->getCard()->getExpiryDate('my');
32+
// Workaround for https://github.com/thephpleague/omnipay-common/issues/29
33+
$expiry_date = $this->getCard()->getExpiryDate('my');
34+
$data['x_exp_date'] = ($expiry_date === '1299' ? '' : $expiry_date);
3335
$data['x_card_code'] = $this->getCard()->getCvv();
3436
} else {
3537
$data['x_card_num'] = '';

0 commit comments

Comments
 (0)