Skip to content

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