diff --git a/tests/Contract/SaferpayHelperTrait.php b/tests/Contract/SaferpayHelperTrait.php index 6976ee5..9c276c0 100644 --- a/tests/Contract/SaferpayHelperTrait.php +++ b/tests/Contract/SaferpayHelperTrait.php @@ -72,6 +72,8 @@ public function iInitializePayment(): AuthorizeResponse $response = json_decode($this->browser->getResponse()->getContent(), true); $response['StatusCode'] = 200; + var_dump($response); + return AuthorizeResponse::fromArray($response); } @@ -89,6 +91,8 @@ public function iAssertPayment(string $token): AssertResponse $response = json_decode($this->browser->getResponse()->getContent(), true); $response['StatusCode'] = 200; + var_dump($response); + return AssertResponse::fromArray($response); } @@ -106,6 +110,8 @@ public function iCapturePayment(string $transactionId): CaptureResponse $response = json_decode($this->browser->getResponse()->getContent(), true); $response['StatusCode'] = 200; + var_dump($response); + return CaptureResponse::fromArray($response); } @@ -123,6 +129,8 @@ public function iRefundPayment(string $captureId): RefundResponse $response = json_decode($this->browser->getResponse()->getContent(), true); $response['StatusCode'] = 200; + var_dump($response); + return RefundResponse::fromArray($response); } }