Bagisto Forum

    Bagisto

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

    Charge on Payment Method

    General Discussion
    2
    5
    225
    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.
    • A
      althafn last edited by

      I want to charge clients based on payment method like Cash on Delivery for example. Is there a chance this will be worked on in a future implementation of Bagisto?

      What should I be considering when overriding the default checkout to enable this functionality?

      1 Reply Last reply Reply Quote 0
      • sanjay-webkul
        sanjay-webkul last edited by

        Hi there,
        Can you please elaborate?

        1 Reply Last reply Reply Quote 0
        • A
          althafn last edited by

          ok so for example, when a custom chooses payment method as 'Cash on Delivery', I want to charge them a fixed amount. What is the best way to do this?

          1 Reply Last reply Reply Quote 0
          • sanjay-webkul
            sanjay-webkul last edited by

            Hi there,
            You can create a new field like Rate inside configuration/sales/paymentmethods.
            And please take a reference from Here for the same.

            1 Reply Last reply Reply Quote 0
            • A
              althafn last edited by

              hi. I understand setting the rate, but how do I calculate it when checking out?

              I feel like the only solution is editing the Webkul\Checkout\Cart::collectTotals() function and copy-paste the same functionality of selected-shipping-rate, but not sure if thats the best way. Can you pls confirm?

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