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

Issue in implementing redsys payment gateway in rails API #21

Open
gurmindersingh4260 opened this issue Aug 8, 2018 · 1 comment
Open

Comments

@gurmindersingh4260
Copy link

I am trying to implement redsys payment gateway in rails api. So, there we are not having any option for using redirect_to method.
Please suggest how i can implement redsys in rails api.

@gurmindersingh4260 gurmindersingh4260 changed the title Issue in implementing rails API Issue in implementing redsys payment gateway in rails API Aug 8, 2018
@alexmorral
Copy link

This gem is using the redirection method.
Using this on an API what I can think of, is to create a method on the API that returns all the encoded parameters that need to be sent to redsys. Those on the file

redsys-rails/app/views/redsys/tpv/form.html.erb

And then on the client make the POST call to the redsys URL using this parameters using some sort of WebView.

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

No branches or pull requests

2 participants