GithubHelp home page GithubHelp logo

Erase old backers record about selfstarter HOT 4 CLOSED

apigy avatar apigy commented on June 9, 2024
Erase old backers record

from selfstarter.

Comments (4)

codefrosty avatar codefrosty commented on June 9, 2024

Oh man, I hope this gets fixed really soon. Thank you for creating the issue. I wonder if this bug is live and how many actual backers are there on Lockitron.com

from selfstarter.

ccamrobertson avatar ccamrobertson commented on June 9, 2024

The number of backers should be based on a count of valid Amazon tokens that have been returned to Selfstarter. When you are in the sandbox mode, you can create a bunch of fake orders quickly that provide fake multi-auth tokens. Is this what occurred? Or did you cancel/leave Amazon midway through?

People who start an order but don't finish should not be counted - even in sandbox mode.

If a person cancels their order, you should have a valid IPN endpoint which then deletes the order on Selfstarter.

For third party verification, these tokens can be provided to someone else who can call them against the Amazon service to see if they are real.

from selfstarter.

Jarred-Sumner avatar Jarred-Sumner commented on June 9, 2024

I just pushed a fix.

With Lockitron.com, we had to modify certain parts of Selfstarter because the code for Selfstarter was too tightly coupled with the rest of our codebase -- we kind of rushed this out without testing it enough first.

The problem was that it did Order.count which literally counts all the rows in the orders table -- now, it does Order.where("token != ? OR token != ?", "", nil).count --- token is where we store Amazon's multi-use token. When the checkout process is successful, Amazon passes us back this multi-use token, and, when the product is ready to ship, we use it to actually charge the credit card. Now, this will count the orders based on the orders with multi-use tokens.

from selfstarter.

yulau avatar yulau commented on June 9, 2024

Thank you very much for your help and explanation!
I'll try to work it out.

from selfstarter.

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.