Open aimeos opened 3 years ago
I think this depends on the implementation of the request? It's up to the gateways to provide the correct ID
In cases where the gateway returns the transaction ID, yes. But most gateways don't do that and this PR makes it easier for deveolpers of Omnipay driver to create a fully working driver.
@barryvdh For example, the Paypal_Rest gateway from the omnipay/paypal doesn't receive the transaction ID from the PayPal server but also doesn't overwrite the getTransactionId() of the response object to return those from the request object.
Response:getTransactionId()
returnsnull
by default and most Omnipay drivers don't overwrite the method to return the ID. This PR makes the transaction ID available by default.