Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make transaction ID available in response #242

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Make transaction ID available in response #242

wants to merge 1 commit into from

Conversation

aimeos
Copy link
Contributor

@aimeos aimeos commented Jan 7, 2021

Response:getTransactionId() returns null by default and most Omnipay drivers don't overwrite the method to return the ID. This PR makes the transaction ID available by default.

@barryvdh
Copy link
Member

barryvdh commented Jan 8, 2021

I think this depends on the implementation of the request? It's up to the gateways to provide the correct ID

@aimeos
Copy link
Contributor Author

aimeos commented Jan 8, 2021

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.

@aimeos
Copy link
Contributor Author

aimeos commented Jan 11, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants