Skip to content
This repository was archived by the owner on Dec 10, 2021. It is now read-only.

GP-860 - Port features from comicrelief/omnipay-worldpay-cg-hosted #2

Merged
merged 3 commits into from
Nov 29, 2017

Conversation

NoelLH
Copy link

@NoelLH NoelLH commented Nov 29, 2017

  • Support more secure 'username', distinct from merchant code
  • Detect and handle errors better, especially generic CDATA text in an <error>

This is mostly copied from changes I made on the Hosted adapter, but because this one doesn't yet have models to handle Notifications, its Response methods are all directly in the class rather than partly in a shared Trait.

* Support more secure 'username', distinct from merchant code
* Detect and handle errors better, especially generic CDATA text in an <error>
@NoelLH NoelLH self-assigned this Nov 29, 2017
@NoelLH NoelLH requested a review from adamclark-dev November 29, 2017 15:25
@@ -12,13 +12,21 @@
*/
class Response extends AbstractResponse
{
/** @var string */
protected static $PAYMENT_STATUS_AUTHORISED = 'AUTHORISED';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these not be constants?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep probably. I don't think they worked in the other repo with the Trait & these were the closest functional equivalent. Will constant-ify in this repo for now.

adamclark-dev
adamclark-dev previously approved these changes Nov 29, 2017
@NoelLH NoelLH merged commit ff47537 into master Nov 29, 2017
@NoelLH NoelLH deleted the GP-860-support-username branch November 29, 2017 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants