Skip to content

Commit

Permalink
Merge pull request #81 from mewebstudio/80-ykb-3d-ödeme-geçersiz-tran…
Browse files Browse the repository at this point in the history
…saction-type-gönderiyor

fix #80 PosNet fix wrong transaction type is sent
  • Loading branch information
nuryagdym authored Jul 6, 2022
2 parents 6680bb5 + fccf275 commit 8007633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DataMapper/PosNetRequestDataMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public function create3DEnrollmentCheckRequestData(AbstractPosAccount $account,
'installment' => $this->mapInstallment($order->installment),
'XID' => self::formatOrderId($order->id),
'cardHolderName' => $card->getHolderName(),
'tranType' => $txType,
'tranType' => $this->mapTxType($txType),
],
];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/DataMapper/PosNetRequestDataMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function testCreate3DEnrollmentCheckRequestData()
$pos = $this->pos;
$pos->prepare($this->order, AbstractGateway::TX_PAY, $this->card);
$expected = $this->getSample3DEnrollmentCheckRequestData($pos->getAccount(), $pos->getOrder(), $pos->getCard());
$actual = $this->requestDataMapper->create3DEnrollmentCheckRequestData($pos->getAccount(), $pos->getOrder(), 'Sale', $pos->getCard());
$actual = $this->requestDataMapper->create3DEnrollmentCheckRequestData($pos->getAccount(), $pos->getOrder(), AbstractGateway::TX_PAY, $pos->getCard());
$this->assertEquals($expected, $actual);
}

Expand Down

0 comments on commit 8007633

Please sign in to comment.