Coder Social home page Coder Social logo

Comments (9)

LOGESH-B avatar LOGESH-B commented on May 15, 2024

@treoden Can you tell me where it shows wrong
image

from evershop.

treoden avatar treoden commented on May 15, 2024

It shows wrong in order summary (grand total) from admin when user paid using Stripe
It does not effect the real amount paid by user, just the display issue

from evershop.

mark-jia avatar mark-jia commented on May 15, 2024

Weired paidAmount = transaction.amount.text displays 100 x correct amount
I need to work out the flow

from evershop.

mark-jia avatar mark-jia commented on May 15, 2024

Hi treoden, do you have access to the postgres database on the demo site? I was wondering if the payment_transaction has the correct data for order # 13353 and #13354? Maybe it is not a display problem. When I look through the orders, some got correct display, some not, but they all use stripe payment.

from evershop.

evershopcommerce avatar evershopcommerce commented on May 15, 2024

It is due to the way Stripe handles the money amount. It does not use decimal, instead it use integer. We need to devide the value by 100 before saving the transaction amount to our db

from evershop.

mark-jia avatar mark-jia commented on May 15, 2024

I noticed that, how do you explain that #13350 has the correct number on the demo site?

from evershop.

mark-jia avatar mark-jia commented on May 15, 2024

I noticed Stripe has 3 category and 1 special.
3 category currency: normal, zero decimal, 3 decimal currency
and there is a special

from evershop.

mark-jia avatar mark-jia commented on May 15, 2024

I think I am not going to take into account of 3 decimal currency, I will assume it is a zero decimal for simplicity and just do a division by 100 as a fix, do you agree?

from evershop.

mark-jia avatar mark-jia commented on May 15, 2024

what's your policy about testing, do you need to write a test script or you can pass if a very small changes?

from evershop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.