Bagisto Forum

    Bagisto

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

    Amount in Round figure, not decimal

    Bug Report
    2
    3
    202
    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.
    • G
      gauravjain1 last edited by

      Hello

      How i can set payment amount to be in round figure , not in decimal. many payment gateways do not allow amount in decimal and show errors

      1 Reply Last reply Reply Quote 0
      • R
        rishabh-webkul19 last edited by

        Hello @gauravjain1

        This file contains several price-related methods that can be utilized as needed. For example, the PriceHTML method is used in many places. Similarly, there are multiple other methods defined in this file, so changes can be made as per the specific requirements.

        File Path: https://github.com/bagisto/bagisto/blob/e7de85c48013922399ca0b8ed31ae02b5db6878c/packages/Webkul/Product/src/Type/AbstractType.php#L747C21-L747C33

        Warm Regards
        Team Bagisto

        G 1 Reply Last reply Reply Quote 0
        • G
          gauravjain1 @rishabh-webkul19 last edited by

          @rishabh-webkul19 Hello Rishabh

          When we move to checkout and go to razpayr to payment then we see "amount must be in integer error" on final payment page. check screenshot i added.

          Can you help me to solve this, can you tell me where to change what t change

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