Skip to content

Commit

Permalink
Merge pull request #35 from mahmut/patch-3
Browse files Browse the repository at this point in the history
3D Şifreleme hatası
  • Loading branch information
mewebstudio authored Jun 19, 2021
2 parents b0698e0 + 72b6e67 commit c92ae8f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Gateways/PosNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,16 @@ public function get3DFormData()
}

$data = $this->getOosTransactionData();
if(!$data->approved){
throw new \Exception($data->respText);
}

$inputs = [
'posnetData' => $data->oosRequestDataResponse->data1,
'posnetData2' => $data->oosRequestDataResponse->data2,
'posnetData' => isset($data->oosRequestDataResponse->data1) ? $data->oosRequestDataResponse->data1 : '',
'posnetData2' => isset($data->oosRequestDataResponse->data2) ? $data->oosRequestDataResponse->data2 : '',
'mid' => $this->account->getClientId(),
'posnetID' => $this->account->getPosNetId(),
'digest' => $data->oosRequestDataResponse->sign,
'digest' => isset($data->oosRequestDataResponse->sign) ? $data->oosRequestDataResponse->sign : '',
'vftCode' => isset($this->account->promotion_code) ? $this->account->promotion_code : null,
'merchantReturnURL' => $this->order->success_url,
'url' => '',
Expand Down

0 comments on commit c92ae8f

Please # to comment.