Skip to content

Commit

Permalink
[16.0][FIX] payment_redsys: Error processing redsys response
Browse files Browse the repository at this point in the history
- /payment/redsys/result/<page> controller now process Redsys response and updates related transaction.

Steps to reproduce:

- Install payment_redsys módule
- Configure payment method with test values from https://pagosonline.redsys.es/entornosPruebas.html as "Test mode" and publish.
- Login into portal with "portal" user
- Buy something and go to checkout screen, pay with Redsys.
- Use an Autenticación Frictionless card numbres (4918019160034602,Expiration:12/34, CVV:123)
- The payment will end with success message.
- Press "Continuar" and you'll won't see the "Success message", instead you'll see a pending confirmation message.

The endpoint that retrieves Redsys response doesn't process it and redirects the browser and losts the response information.

All other módules call _handle_notification_data before the redirection.
  • Loading branch information
Pablo De Andrés committed Nov 14, 2023
1 parent d77270e commit dfa56d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions payment_redsys/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ def redsys_return(self, **post):
website=True,
)
def redsys_result(self, page, **vals):
if vals:
request.env["payment.transaction"].sudo()._handle_notification_data(
"redsys", vals
)
return request.redirect("/payment/status")

0 comments on commit dfa56d8

Please sign in to comment.