Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2593 Vizualizări

I'm looking for a way to override this method.


https://github.com/odoo/odoo/blob/1bdd0cc247d36c869ffdee7d501cb65d36be47a6/addons/payment_stripe_sca/static/src/js/payment_form.js#L32


I tried to do this


start() {

            PaymentForm.prototype._createStripeToken = function (ev, $checkedRadio, addPmEvent) {

            console.log("new call on start")

...


But it's not working

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

Try the below code

odoo.define('stripe_token.payment_form', function (require) {
"use strict"; var Payment = require('payment.payment_form'); Payment.include({
_createStripeToken: function (ev, $checkedRadio, addPmEvent) {
var self = this;
return this._super.apply(this, arguments);
},
});
});

Regards

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 22
1904
1
iul. 19
6918
1
iul. 19
3922
2
dec. 23
14903
0
oct. 23
33