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

Compatibility with omnipay-common:^3.0 #29

Merged
merged 4 commits into from
Oct 23, 2017
Merged

Compatibility with omnipay-common:^3.0 #29

merged 4 commits into from
Oct 23, 2017

Conversation

dpfaffenbauer
Copy link
Contributor

This PR makes WorldPay compatible with the latest Omnipay Alpha and merges also PR #26 (makes total sense to me, so I merged it here as well, if you wanna see only changes for the newest version, have a look at 87a2d03)

This is necessary to make omnipay-worldpay compatible with symfony-stack 3.*.

leith and others added 4 commits July 31, 2017 18:35
* Fix incorrect response class being generated (causes card declines to be accepted)
* Fix purchase response message to actually have failure reason if available (instead of an error from no 'message')
* Add more docblocks
* Add proper abstract function definition for getEndpoint
* Abstract JsonAuthorizeResponse to reduce duplication
* Update unit test coverage, including distinction between failure, error and malformed cases
* Add JSON gateway to README
@dpfaffenbauer
Copy link
Contributor Author

@KirbyFox don't think so, haven't change any business logic, just compatibility with latest omnipay

@dpfaffenbauer
Copy link
Contributor Author

@KirbyFox Not sure how to do that with Sylius, but since I am doing it similar as they do it: I am having these two fields inside my Payment Configuration Form:

->add('factory', TextType::class, [
                'data' => 'omnipay',
                'empty_data' => 'omnipay'
            ])
            ->add('type', TextType::class, [
                'data' => 'WorldPay\\Json',
                'empty_data' => 'WorldPay\\Json'
            ])

This basically sets the config factory to omnipay with type WorldPay\Json. The rest is done by OmnipayBridge.

@dpfaffenbauer
Copy link
Contributor Author

@amacneil any thoughts on this?

@StudioMaX
Copy link
Contributor

ping @barryvdh

@barryvdh barryvdh merged commit 7f9b41a into thephpleague:master Oct 23, 2017
@dpfaffenbauer
Copy link
Contributor Author

yeah :) 🍻

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.

4 participants