• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Wrong amount passing to PayPal

General Discussion
4
8
491
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.
  • _
    _developer_12 last edited by _developer_12 26 Jun 2020, 11:12 26 Jun 2020, 11:04

    Hello There,

    The correct amount is not going to PayPal. It's working as follow:
    Currency: GBP
    Cart Amount is: 70.7500 GBP
    Cart Tax: 14.1500 GBP
    Total is: 84.90 GBP

    But PayPal getting the amount 707.50 GBP (decimal jumping one digit ahead) instead of 70.75 GBP.

    So PayPal showing total amount as 707.50 + 14.15 = 721.65 GBP

    Please suggest solving the issue.

    Thanks

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by 29 Jun 2020, 14:02

      @_developer_12
      please let me know in which bagisto version you are facing this issue.
      Also kindly attach some screenshot.

      Thanks

      1 Reply Last reply Reply Quote 0
      • _
        _developer_12 last edited by 30 Jun 2020, 06:44

        Thanks for your replay.

        Bagisto Version is: V1.0.0

        Please review attached stuff as:

        1. cart.jpg: showing cart details
        2. Paypal form.txt: Its content HTML form which generates during the PayPal process.
        3. paypal.jpg: PayPal screen showing the amount

        In today's testing we get a completely different figure, is it the issue of some cache? (we have clear cache lots of time) Or something else?

        We are using shared server hosting for now.

        Please suggest.

        ![2_1593497751844_paypal.jpg](Uploading 100%) [1_1593497751844_paypal form.txt](Uploading 100%) ![0_1593497751844_cart.jpg](Uploading 100%)

        1 Reply Last reply Reply Quote 0
        • _
          _developer_12 last edited by 30 Jun 2020, 07:34

          Thanks for your replay.

          Bagisto Version is: V1.0.0

          Please review attached stuff as:

          1. cart.jpg: showing cart details
          2. Paypal form.txt: Its content HTML form which generates during the PayPal process.
          3. paypal.jpg: PayPal screen showing the amount

          In today's testing we get a completely different figure, is it the issue of some cache? (we have clear cache lots of time) Or something else?

          We are using shared server hosting for now.

          Please suggest.

          ![2_1593497751844_paypal.jpg](Uploading 100%) [1_1593497751844_paypal form.txt](Uploading 100%) ![0_1593497751844_cart.jpg](Uploading 100%) cart.jpg [0_1593499571604_paypal form.txt](Uploading 100%) paypal.jpg paypal form.jpg

          1 Reply Last reply Reply Quote 0
          • bhanu-webkul
            bhanu-webkul last edited by 1 Jul 2020, 14:41

            @_developer_12

            I have tried to reproduce same in bagsito version 1.0.0, but its working fine. I can see exact same amount at paypal payment page as showing cart amount.
            For your convenience i have attached few screenshots, please look at them.
            This may be cache issue as you mentioned for that you can follow below command.
            php artisan clear:cache
            https://prnt.sc/t9uluo , https://prnt.sc/t9uj74 , https://prnt.sc/t9ujnl

            1 Reply Last reply Reply Quote 0
            • _
              _developer_12 last edited by 1 Jul 2020, 15:02

              Thanks for your reply. I was waiting for it.

              It seems some other issue when I posting above form separately even then I am not getting the same figure in PayPal. Please review form values and test it by creating an HTML file. it's still having the issue.

              Following is the form:

              <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" id="paypal_standard_checkout" method="POST">
              <input value="Click here if you are not redirected within 10 seconds..." type="submit">
              <input type="hidden" name="business" value="shop@tshirtmachine.com">
              <input type="hidden" name="invoice" value="53">
              <input type="hidden" name="currency_code" value="GBP">
              <input type="hidden" name="paymentaction" value="sale">
              <input type="hidden" name="return" value="https://www.noisemerch.com/store/public/paypal/standard/success">
              <input type="hidden" name="cancel_return" value="https://www.noisemerch.com/store/public/paypal/standard/cancel">
              <input type="hidden" name="notify_url" value="https://www.noisemerch.com/store/public/paypal/standard/ipn">
              <input type="hidden" name="charset" value="utf-8">
              <input type="hidden" name="item_name" value="Default">
              <input type="hidden" name="amount" value="700.7500">
              <input type="hidden" name="tax" value="14.1500">
              <input type="hidden" name="shipping" value="0">
              <input type="hidden" name="discount_amount" value="0.0000">
              <input type="hidden" name="cmd" value="_cart">
              <input type="hidden" name="upload" value="1">
              <input type="hidden" name="item_number_1" value="149">
              <input type="hidden" name="item_name_1" value="GILDAN SOFTSTYLE ADULT WHITE T-SHIRT">
              <input type="hidden" name="quantity_1" value="20">
              <input type="hidden" name="amount_1" value="700.7500">
              <input type="hidden" name="item_number_2" value="Free Shipping">
              <input type="hidden" name="item_name_2" value="Shipping">
              <input type="hidden" name="quantity_2" value="1">
              <input type="hidden" name="amount_2" value="0">
              <input type="hidden" name="tax_cart" value="14.1500">
              <input type="hidden" name="discount_amount_cart" value="0.0000">
              <input type="hidden" name="city" value=" Burgess Hill">
              <input type="hidden" name="country" value="GB">
              <input type="hidden" name="email" value="kuntal@noisemerch.com">
              <input type="hidden" name="first_name" value="Kuntal">
              <input type="hidden" name="last_name" value="Mathur">
              <input type="hidden" name="zip" value="RH15 9LR">
              <input type="hidden" name="state" value="West Sussex">
              <input type="hidden" name="address1" value="Victoria Business Centre">
              <input type="hidden" name="address_override" value="1">
              <input type="submit" name="submit" value="submit">
              </form>

              If you can assist in it, it will very helpful

              Many Thanks

              1 Reply Last reply Reply Quote 0
              • S
                shaiv-webkul last edited by 2 Jul 2020, 07:18

                Please share your instance and ftp details, so that we will assist you in better way.

                1 Reply Last reply Reply Quote 0
                • _
                  _developer_12 last edited by 2 Jul 2020, 07:28

                  Thanks for your replay.

                  We got the issue, it was coming due to qty which are calulating on paypal side.

                  Many Thanks

                  1 Reply Last reply Reply Quote 0
                  4 out of 8
                  • First post
                    4/8
                    Last post