Files
odoo_source/addons/payment_custom/static/src/js/post_processing.js
T
Antoine Vandevenne (anv) 5b5f69352c [CLN] payment(_*): correct code styling inconsistencies
This commit mainly removes the extra indent level left over after commit
odoo/odoo@8ec2e8cf. It also cleans up purely cosmetic code styling
inconsistencies.

task-2882677

Part-of: odoo/odoo#120446
2023-09-22 13:32:53 +00:00

21 lines
690 B
JavaScript

/** @odoo-module **/
import paymentPostProcessing from '@payment/js/post_processing';
paymentPostProcessing.include({
/**
* Don't wait for the transaction to be confirmed before redirecting customers to the
* landing route because custom transactions remain in the state 'pending' forever.
*
* @override method from `@payment/js/post_processing`
* @param {string} providerCode - The code of the provider handling the transaction.
*/
_getFinalStates(providerCode) {
const finalStates = this._super(...arguments);
if (providerCode === 'custom') {
finalStates.push('pending');
}
return finalStates;
}
});