Skip to Content
Menu
This question has been flagged
2 Replies
6742 Views

We are using Odoo version 16 and currently have authorize,net set up for ACH (Echeck) and credit card processing.  We would like to automatically add a 3% fee when paying by credit card but no fee for Echeck (ACH).  Since the customer will choose which option they want to pay with, we will not be able to add it as a line item beforehand.


Thanks!

Avatar
Discard
Best Answer

To automatically add a fee when paying by credit card in Odoo version 16, you can use a custom module that adds a fee to the invoice when the payment method is a credit card. Here's an outline of the steps you can take:

Create a custom module: You can create a custom module in Odoo by going to Settings > Apps > Create, and filling out the necessary fields.

Define a new payment method: In the custom module, define a new payment method for credit card payments. You can do this by creating a new record in the "payment.acquirer" model, and setting the "provider" field to "authorize_net" (since you are using authorize.net for credit card processing). Set the "fees_active" field to True, and the "fees_amount" field to 3 (since you want to charge a 3% fee).

Override the "PaymentTransaction" model: Override the "PaymentTransaction" model in your custom module to add a fee to the invoice when the payment method is a credit card. You can do this by creating a new record in the "ir.model.fields" model, and setting the "name" field to "fee_amount". Then, override the "create" method of the "PaymentTransaction" model to add a fee to the invoice when the payment method is a credit card.

Update the invoice view: Update the invoice view in your custom module to display the fee amount on the invoice when the payment method is a credit card. You can do this by creating a new record in the "ir.ui.view" model, and setting the "inherit_id" field to "account.invoice_form". Then, add a new field to the view to display the fee amount.

Once you have completed these steps, your custom module will automatically add a 3% fee to the invoice when the payment method is a credit card, and display the fee amount on the invoice. Note that you will need to configure your authorize. net account to charge the fee separately from the invoice amount.

Avatar
Discard
Best Answer

Can you help us configure the stripe payment method to charge fees to the customer like the PayPal method currently does in odoo 16.3?

Avatar
Discard

Thank you for your reply, I had previously read those links but I'm not finding the information I need to be able to activate the fees portion on stripe payment method, we are looking for someone who can consult with us on some customizations such as this and implement them, is this something you could do?

Amongst Bhavin's links, PayPal is listed as the only provider who can charge extra fees.