44
55use Omnipay \Common \AbstractGateway ;
66use Omnipay \Common \Message \AbstractRequest ;
7+ use Omnipay \Common \Message \NotificationInterface ;
78use Omnipay \Common \Message \RequestInterface ;
89use Omnipay \MyPay \Message \AcceptNotificationRequest ;
910use Omnipay \MyPay \Message \CompletePurchaseRequest ;
@@ -43,7 +44,8 @@ public function getDefaultParameters()
4344 }
4445
4546 /**
46- * @return AbstractRequest
47+ * @param array $options
48+ * @return RequestInterface
4749 */
4850 public function purchase (array $ options = [])
4951 {
@@ -52,7 +54,7 @@ public function purchase(array $options = [])
5254
5355 /**
5456 * @param array $options
55- * @return AbstractRequest
57+ * @return RequestInterface
5658 */
5759 public function completePurchase (array $ options = [])
5860 {
@@ -61,13 +63,17 @@ public function completePurchase(array $options = [])
6163
6264 /**
6365 * @param array $options
64- * @return AbstractRequest
66+ * @return RequestInterface
6567 */
6668 public function acceptNotification (array $ options = [])
6769 {
6870 return $ this ->createRequest (AcceptNotificationRequest::class, $ options );
6971 }
7072
73+ /**
74+ * @param array $options
75+ * @return RequestInterface
76+ */
7177 public function fetchTransaction (array $ options = [])
7278 {
7379 return $ this ->createRequest (FetchTransactionRequest::class, $ options );
0 commit comments