Esempio n. 1
0
 protected function parseBank3DResponse($rawResponse)
 {
     $response = new PaymentResponse();
     $response->setOrderId($rawResponse['Xid']);
     $response->setTransactionId($rawResponse['Xid']);
     // IMPORTANT! in this step, Posnet hasn't sent mdStatus to us yet.
     // so assume that mdStatus is 1 to continue.
     $response->setMdStatus(1);
     // extraData is not currently using.
     $extraData = ['bankPacket' => $rawResponse['BankPacket'], 'merchantPacket' => $rawResponse['MerchantPacket'], 'sign' => $rawResponse['Sign']];
     $response->setData($extraData);
     return $response;
 }
Esempio n. 2
0
 protected function parseBank3DResponse($rawResponse)
 {
     $response = new PaymentResponse();
     $response->setOrderId($rawResponse['oid']);
     $response->setTransactionId($rawResponse['oid']);
     $response->setMdStatus($rawResponse['mdStatus']);
     $response->setResponseMessage($rawResponse['mdErrorMsg']);
     return $response;
 }