Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    How to Add a New Payment Provider Like Cash on Delivery in Odoo Website?

    General Discussion
    odoo payments paymentcod payment methods odoo website
    1
    1
    16
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Vihan Richard
      Vihan Richard last edited by

      Hi everyone,

      If you're looking to implement a custom payment provider, such as Cash on Delivery (COD), and want it to be seamlessly confirmed through the Odoo website payment transaction flow, here's a quick breakdown based on our experience at Webkul.

      Odoo lets you define new payment acquirers via the payment.acquirer model. For COD, you'd typically:
      Create a new acquirer (e.g., payment_cod) with minimal API dependency.

      Set state as 'enabled' and pre_msg/post_msg to inform customers about the payment terms.
      Use the controller /payment/transaction to confirm the order post-checkout.

      Ensure your payment.transaction record is updated correctly with state='done' or state='authorized' upon completion.
      This method ensures that Cash on Delivery shows as a valid Odoo payment method on the checkout page and works with the core transaction confirmation logic.

      Let me know if you're using a custom flow or want to integrate with a third-party gateway, Webkul has built various Odoo payment gateways and can share insights based on your use case.

      Visit us at- https://store.webkul.com/Odoo/Payment.html

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post

      0
      Online

      4.5k
      Users

      1.6k
      Topics

      5.6k
      Posts

      • Privacy
      • Terms & Conditions
      • Donate

      © Copyrights and All right reserved Lanka Developers Community

      Powered by Axis Technologies (PVT) Ltd

      Made with in Sri Lanka

      | |