summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-09-01 11:47:55 +0200
committerThibault Delavallée <tde@odoo.com>2017-09-06 10:40:46 +0200
commit06fe263a150f42ec36c91e6219fdc8f19fd50798 (patch)
treec8225ac4e7bd52273ec4346b1f11539eb4839a61 /addons/web/static/src/js/views/basic/basic_controller.js
parentfaea6583820bd78dac330915cef0016969af5bbb (diff)
[IMP] payment: add new explicit parameters to the payment widget
Purpose of this commit is to ease the use of the payment widget and avoid having to perform too much custom code in the various routes used when doing payments : * when instantiating the widget give him its parent element data so that parameters given when calling the payment form template are automatically present in the widget options; * support more parameters when calling the route for form-based acquirers including access_token, URLs and callback method; * when doing a form-based payment a call to a JSON route returning the rendered form is done. Payment widget now uses all data from that form including the URL of the acquirer website. This way form-based acquirers are really dynamic and values update is easier; * remove hidden display of form-based acquirers as all data come now from the called JSON route that returns the form; * add a warning about partner-id not being set as it is an issue some people may encounter;
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions