Skip to content

Conversation

@danybmx
Copy link

@danybmx danybmx commented Feb 10, 2025

Right now the sendPostRequest on RedsysRequest is forcing the directPayment property to true, that means that all payment request sent by that method are marked as "insecure payments", so no authentication is required.

This PR just remove that line so the user of the library could set the directPayment they want or don't do it to keep the default (false).

@dtorras
Copy link
Member

dtorras commented Feb 11, 2025

Hi Daniel! You are right, I've only considered the recurrent payment case after an authorisation with redirect method.

I don't have experience integrating with the REST method on Redsys but I think more changes will be need. For example, requests are always sent to /trataPeticionREST and I see you need to use different endpoints during an authorisation process https://pagosonline.redsys.es/desarrolladores-inicio/documentacion-operativa/autorizacion/#rest-info

Do you think you can extend this PR to handle any REST request?

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