We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 730b7f5 commit 1070058Copy full SHA for 1070058
src/Message/DPMAuthorizeRequest.php
@@ -29,7 +29,9 @@ public function getData()
29
30
if ($this->getCard()) {
31
$data['x_card_num'] = $this->getCard()->getNumber();
32
- $data['x_exp_date'] = $this->getCard()->getExpiryDate('my');
+ // 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);
35
$data['x_card_code'] = $this->getCard()->getCvv();
36
} else {
37
$data['x_card_num'] = '';
0 commit comments