creagia / laravel-redsys

Integrate your Laravel application with Redsys, the lead payment gateway in Spain.
MIT License
11 stars 3 forks source link

Issue with POST localGateway/realizarPago #29

Closed jperez8 closed 1 year ago

jperez8 commented 1 year ago

Hi, i'm trying to make a payment with redirect method. When i try to accept a payment http://localhost/redsys/localGateway/post is returning a 500.

I'm using Sail.

I have these variables on my .env

Screenshot 2023-10-03 at 01 27 20 Screenshot 2023-10-03 at 01 31 13

This is the error I'm getting

Screenshot 2023-10-03 at 01 27 50

Thanks in advance, it is a pretty cool package! Best Regards

dtorras commented 1 year ago

I was able to reproduce it using Laravel Sail.

I'm afraid this is a Laravel Sail bug when marking HTTP requests to the same server. It works when using any other web server. Here you have some bug reports on laravel/sail:

https://github.com/laravel/sail/issues/103 https://github.com/laravel/sail/issues/115

jperez8 commented 1 year ago

Thanks, I've been able to test it setting REDSYS_ENVIRONMENT=test