|
@@ 648-658 (lines=11) @@
|
| 645 |
|
* |
| 646 |
|
* @return void |
| 647 |
|
*/ |
| 648 |
|
protected function updateApiLogAfterCapture(SpyPaymentPayoneApiLog $apiLogEntity, CaptureResponseContainer $responseContainer) |
| 649 |
|
{ |
| 650 |
|
$apiLogEntity->setStatus($responseContainer->getStatus()); |
| 651 |
|
$apiLogEntity->setTransactionId($responseContainer->getTxid()); |
| 652 |
|
$apiLogEntity->setErrorMessageInternal($responseContainer->getErrormessage()); |
| 653 |
|
$apiLogEntity->setErrorMessageUser($responseContainer->getCustomermessage()); |
| 654 |
|
$apiLogEntity->setErrorCode($responseContainer->getErrorcode()); |
| 655 |
|
|
| 656 |
|
$apiLogEntity->setRawResponse(json_encode($responseContainer->toArray())); |
| 657 |
|
$apiLogEntity->save(); |
| 658 |
|
} |
| 659 |
|
|
| 660 |
|
/** |
| 661 |
|
* @param \Orm\Zed\Payone\Persistence\SpyPaymentPayoneApiLog $apiLogEntity |
|
@@ 666-676 (lines=11) @@
|
| 663 |
|
* |
| 664 |
|
* @return void |
| 665 |
|
*/ |
| 666 |
|
protected function updateApiLogAfterDebit(SpyPaymentPayoneApiLog $apiLogEntity, DebitResponseContainer $responseContainer) |
| 667 |
|
{ |
| 668 |
|
$apiLogEntity->setStatus($responseContainer->getStatus()); |
| 669 |
|
$apiLogEntity->setTransactionId($responseContainer->getTxid()); |
| 670 |
|
$apiLogEntity->setErrorMessageInternal($responseContainer->getErrormessage()); |
| 671 |
|
$apiLogEntity->setErrorMessageUser($responseContainer->getCustomermessage()); |
| 672 |
|
$apiLogEntity->setErrorCode($responseContainer->getErrorcode()); |
| 673 |
|
|
| 674 |
|
$apiLogEntity->setRawResponse(json_encode($responseContainer->toArray())); |
| 675 |
|
$apiLogEntity->save(); |
| 676 |
|
} |
| 677 |
|
|
| 678 |
|
/** |
| 679 |
|
* @param \Orm\Zed\Payone\Persistence\SpyPaymentPayoneApiLog $apiLogEntity |
|
@@ 684-694 (lines=11) @@
|
| 681 |
|
* |
| 682 |
|
* @return void |
| 683 |
|
*/ |
| 684 |
|
protected function updateApiLogAfterRefund(SpyPaymentPayoneApiLog $apiLogEntity, RefundResponseContainer $responseContainer) |
| 685 |
|
{ |
| 686 |
|
$apiLogEntity->setTransactionId($responseContainer->getTxid()); |
| 687 |
|
$apiLogEntity->setStatus($responseContainer->getStatus()); |
| 688 |
|
$apiLogEntity->setErrorMessageInternal($responseContainer->getErrormessage()); |
| 689 |
|
$apiLogEntity->setErrorMessageUser($responseContainer->getCustomermessage()); |
| 690 |
|
$apiLogEntity->setErrorCode($responseContainer->getErrorcode()); |
| 691 |
|
|
| 692 |
|
$apiLogEntity->setRawResponse(json_encode($responseContainer->toArray())); |
| 693 |
|
$apiLogEntity->save(); |
| 694 |
|
} |
| 695 |
|
|
| 696 |
|
/** |
| 697 |
|
* @param \SprykerEco\Zed\Payone\Business\Api\Request\Container\AbstractRequestContainer $container |