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
21 lines
690 B
JavaScript
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;
|
|
}
|
|
});
|