Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1442 Widoki

Hello,

I'm developping a payment plugin and wanted to know if it was possible to create a credit card form in the checkout page in odoo 16. 

In addition, i was wondering which fonction of the plugin payment was called when entering the checkout page

Thank you in advance


Awatar
Odrzuć
Najlepsza odpowiedź

Hello Hippolyte,

Do you want to create a new payment page in Odoo or integrate with a new payment provider whose credit card form should be present on existing payment pages?

In the first case, you can take inspiration from https://github.com/odoo/odoo/blob/16.0/addons/payment/controllers/portal.py#L36C1-L151, which controls the page for payment through payment links. It calls only the essential methods for preparing the payment page. You can also have a look at https://github.com/odoo/odoo/blob/16.0/addons/account_payment/controllers/portal.py#L13-L68, which does the same job but for the portal page of invoices.

In the second case, it depends on the provider you want to integrate with and the features you plan on supporting. The payment​ module serves as a framework for integrating payment providers in its own module, and you should only need to override some methods and create one or two views to have everything working. I recommend taking examples from existing payment_*​ modules.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Yes, i looked into payment_demo and found the inline_form. Thanks for answering even though my question wasn't clear.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
cze 24
1994
0
mar 25
1103
3
sty 25
4372
2
cze 25
2210
1
sie 24
2084