Closed GrzegorzBandur closed 2 years ago
This is up to the gateway to implement.
This is up to the gateway to implement.
Yes I want to implement this in gateway and check's if gateway has implement this method in multigateway case.
Yeah but adding it to the interface gives the impression that the method is always available.
Yeah but adding it to the interface gives the impression that the method is always available.
Maybe the solution is to add second interface that extends this interface and check's if Notification implements it? A lot of providers has this information in Notification and It will be good to get it.
Yeah but you can still check if the method exists or the data is available. Adding an interface is cleaner but would require all gateways to update.
I think that if there is no interface for that nobody will implement method which returns transactionId. If this will be an additional interface that's extends NotificationInterface there will not necessary to update gateways and I future it is possible that getTransactionId in Notification class will be available in gateways published on the internet.
Add Support for Notifications that passes a TransactionId.