Esempio n. 1
0
 /**
  * @param \Orm\Zed\Payolution\Persistence\SpyPaymentPayolutionTransactionStatusLog $statusLog
  * @param \Generated\Shared\Transfer\PayolutionTransactionResponseTransfer $response
  *
  * @return void
  */
 protected function matchStatusLogWithResponse(SpyPaymentPayolutionTransactionStatusLog $statusLog, PayolutionTransactionResponseTransfer $response)
 {
     $this->assertEquals($response->getProcessingCode(), $statusLog->getProcessingCode());
     $this->assertEquals($response->getProcessingResult(), $statusLog->getProcessingResult());
     $this->assertEquals($response->getProcessingStatus(), $statusLog->getProcessingStatus());
     $this->assertEquals($response->getProcessingStatusCode(), $statusLog->getProcessingStatusCode());
     $this->assertEquals($response->getProcessingReason(), $statusLog->getProcessingReason());
     $this->assertEquals($response->getProcessingReasonCode(), $statusLog->getProcessingReasonCode());
     $this->assertEquals($response->getProcessingReturn(), $statusLog->getProcessingReturn());
     $this->assertEquals($response->getProcessingReturnCode(), $statusLog->getProcessingReturnCode());
     $this->assertNotNull($statusLog->getIdentificationTransactionid());
     $this->assertNotNull($statusLog->getIdentificationUniqueid());
     $this->assertNotNull($statusLog->getIdentificationShortid());
     $this->assertNotNull($statusLog->getProcessingTimestamp());
 }
Esempio n. 2
0
 /**
  * @param \Generated\Shared\Transfer\PayolutionTransactionResponseTransfer $responseTransfer
  * @param int $idPayment
  *
  * @return void
  */
 protected function logApiResponse(PayolutionTransactionResponseTransfer $responseTransfer, $idPayment)
 {
     $logEntity = new SpyPaymentPayolutionTransactionStatusLog();
     $logEntity->fromArray($responseTransfer->toArray());
     $logEntity->setFkPaymentPayolution($idPayment);
     $logEntity->save();
 }