Skip to content
Snippets Groups Projects
Commit 904c2e51 authored by Toufik Benjaa's avatar Toufik Benjaa
Browse files

[FIX] payment: Portal payment were not saving tokens

- Portal payement is not respecting the option to save tokens after payments.
parent 7680635c
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,7 @@ class WebsitePayment(http.Controller):
'amount': float(amount),
'currency_id': currency_id,
'partner_id': partner_id,
'type': 'form_save' if acquirer.save_token else 'form',
}
tx = request.env['payment.transaction'].sudo().create(values)
......@@ -117,7 +118,8 @@ class WebsitePayment(http.Controller):
'amount': float(amount),
'currency_id': int(currency_id),
'partner_id': partner_id,
'payment_token_id': pm_id
'payment_token_id': pm_id,
'type': 'form_save' if token.acquirer_id.save_token else 'form',
}
tx = request.env['payment.transaction'].sudo().create(values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment