You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I share the problem that I had some days ago, finally I solved! :) I tried to contact with redsys support and told me that they don't offer support of 3rd code... so then here you have the solution of my problem:
The function prepare_request from Client, returns values as binary b'string', if you send it directly to template when using Flask and render_template, the variable of hidden fields converts b'string' to HTML b'string' to avoid that before passing variables to render_template you have to convert them to unicode (or string)
I share the problem that I had some days ago, finally I solved! :) I tried to contact with redsys support and told me that they don't offer support of 3rd code... so then here you have the solution of my problem:
The function prepare_request from Client, returns values as binary b'string', if you send it directly to template when using Flask and render_template, the variable of hidden fields converts b'string' to HTML
b'string'
to avoid that before passing variables to render_template you have to convert them to unicode (or string)I will send to render_template the variable called _redsys
Here you have the example code using python3.5 + flask + render_template + boostrap
Add to file views.py
Then in template file pages/order.html:
Take care to install using pip3 install the missing modules
I wish it could be helpful to someone some day :)
Thanks you much!
The text was updated successfully, but these errors were encountered: