Skip to content

Commit

Permalink
Merge pull request #58 from nuryagdym/garanti-pos-regular-payment-fix
Browse files Browse the repository at this point in the history
fix issue #56 fix regular payment merchantId
  • Loading branch information
nuryagdym authored Mar 13, 2022
2 parents 8863976 + 9eaec6d commit 3903b88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Gateways/GarantiPos.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function createRegularPaymentXML()
'UserID' => $this->account->getUsername(),
'HashData' => $this->createHashData(),
'ID' => $this->account->getTerminalId(),
'MerchantID' => $this->account->getTerminalId(),
'MerchantID' => $this->account->getClientId(),
],
'Customer' => [
'IPAddress' => $this->order->ip,
Expand Down
4 changes: 2 additions & 2 deletions tests/Gateways/GarantiPosTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function testMap3DPayResponseDataFail()
*
* @return array
*/
private function getSampleRegularPaymentXMLData($order, $card, $account)
private function getSampleRegularPaymentXMLData($order, CreditCardGarantiPos $card, GarantiPosAccount $account)
{
return [
'Mode' => 'TEST',
Expand All @@ -441,7 +441,7 @@ private function getSampleRegularPaymentXMLData($order, $card, $account)
'UserID' => $account->getUsername(),
'HashData' => 'F0641E566B7B98260FD1608D1DF81E8D55461877',
'ID' => $account->getTerminalId(),
'MerchantID' => $account->getTerminalId(),
'MerchantID' => $account->getClientId(),
],
'Customer' => [
'IPAddress' => $order->ip,
Expand Down

0 comments on commit 3903b88

Please sign in to comment.