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

Fix doUnsafeAction of Notify Controller, could not resolve gateway_name parameter defined on route #54

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

mattiaclementi
Copy link

This PR fix an error with doUnsafeAction of Notify Controller.
This controller not resolve the gateway name parameter define in the related route, and cannot permit to use the notifications come from payment processor like Stripe.
It received the Request object as method parameter but not resolve the route parameter in the right way.

I've changed the firm of method, from public function doUnsafeAction(Request $request) to public function doUnsafeAction($gateway_name) as relative route "payum_notify_do_unsafe" describe in service provider.

This PR is tested over PHP 7.3 and PHP 7.4, from Laravel 5.8 up to Laravel 8, using Github Actions.
It can be used on Laravel 5.1 as well, but is not actually tested from this PR. (I've test manually over a fresh L5.1 local installation)

To avoid a BC due to method firms change, i can be convert the fix try to resolve the gateway_name parameter through 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