diff --git a/.phpunit.result.cache b/.phpunit.result.cache new file mode 100644 index 0000000..7e82f47 --- /dev/null +++ b/.phpunit.result.cache @@ -0,0 +1 @@ +{"version":1,"defects":{"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchaseParameters":4,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchaseParameters":4},"times":{"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchase":0.012,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPayout":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetNameNotEmpty":0.001,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetShortNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetDefaultParametersReturnsArray":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testDefaultParametersHaveMatchingMethods":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testTestMode":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCurrency":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsAuthorize":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCompleteAuthorize":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCapture":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsPurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsRefund":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsVoid":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCreateCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsDeleteCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsUpdateCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompleteAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCaptureParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testRefundParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testVoidParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCreateCardParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testDeleteCardParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testUpdateCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPayout":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetShortNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetDefaultParametersReturnsArray":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testDefaultParametersHaveMatchingMethods":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testTestMode":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCurrency":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsAuthorize":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCompleteAuthorize":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCapture":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsPurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsRefund":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsVoid":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCreateCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsDeleteCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsUpdateCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompleteAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCaptureParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testRefundParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testVoidParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCreateCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testDeleteCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testUpdateCardParameters":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testAtmSend":0.001,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmGetData":0.001,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsSend":0}} \ No newline at end of file diff --git a/src/Message/PayoutResponse.php b/src/Message/PayoutResponse.php index 888503d..91a7ff7 100644 --- a/src/Message/PayoutResponse.php +++ b/src/Message/PayoutResponse.php @@ -41,4 +41,9 @@ public function getRedirectUrl() { return $this->data['mobileUrl']; } + + public function getReply() + { + return $this->isSuccessful() ? 'OK' : 'FAIL'; + } }