Skip to content

Make transaction ID available in response#242

Open
aimeos wants to merge 1 commit into
thephpleague:masterfrom
aimeos:transactionid
Open

Make transaction ID available in response#242
aimeos wants to merge 1 commit into
thephpleague:masterfrom
aimeos:transactionid

Conversation

@aimeos

@aimeos aimeos commented Jan 7, 2021

Copy link
Copy Markdown
Contributor

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

barryvdh commented Jan 8, 2021

Copy link
Copy Markdown
Member

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

@aimeos

aimeos commented Jan 8, 2021

Copy link
Copy Markdown
Contributor Author

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

aimeos commented Jan 11, 2021

Copy link
Copy Markdown
Contributor Author

@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