creagia / laravel-redsys

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

Issue with POST localGateway/realizarPago #8

Closed annajuni closed 1 year ago

annajuni commented 2 years ago

Hi! I'm trying to use your package, but it seems that the methods of the local gateway are not working, how can I make the payment response as the payment is made?

Thanks!!

Regards

dtorras commented 2 years ago

@annajuni can you provide any more detail? To test your payments locally, you should define your Redsys environment to local on your .env:

REDSYS_ENVIRONMENT=local
annajuni commented 2 years ago

Hi @dtorras thanks for your answer. Si quieres hablamos en español, como quieras! si que tengo puesta la variable de entorno local, me redirige al local gateway pero allí se me queda colgado cuando quiere hacer la petición POST, se me queda todo el backend bloqueado y tengo que reiniciarlo.

dtorras commented 2 years ago

I guess your application is blocked trying to send the POST response notification. Sending POST requests to local domains is difficult sometimes.

In the below example, the gateway will make a POST request to https://laravel-redsys-example.test/redsys/notification (this route is generated and managed by the package).

image

Can you confirm that your DS_MERCHANT_MERCHANTURL is correct? Can you attach a similar screenshot from your environment if it looks fine?

Thanks.