There are several ways to use Stripe with web2py. You can use the standard Stripe javascript widget (which is what I do) all the way to building a custom form and handling the two-phase transaction cycle yourself (not recommended for a host of reasons).
Using the Javascript widget, you will pass in an amount to charge when you init the widget. The user then supplies his credit card number and pays the amount. If you want the user to choose the amount he is willing to pay, do it BEFORE you init the Strip widget. Then, by the time the widget is called up the amount is known, just like every other Stripe transaction. Not sure why you are unable to track payments by user. This is something you would handle outside of Stripe. Presumably these users have some sort of account with your site and you have information you keep for each user. It becomes your own database task to track the total amounts and aging of amounts (0-30 days, 30-60, etc.) Warm regards, Joe On Sunday, October 23, 2016 at 2:12:45 PM UTC-7, Jaimee S wrote: > > Hi, > > I've read through the stripe documents and i had a few questions. > > I see how it's possible to integrate stripe into web2py, but i don't see > how you can have an open amount which would allow the user to pay however > much they choose. For instance, i would like the users to pay whatever > amount they choose and display the top five paid users on my account. Every > thirty days i would like to reset their accounts and set them all to zero > so they can compete again. How can i track the amount that the users pay on > my website? How do i reset their amounts every thirty days? How can i have > the amount set to an open value so that the users can pay whatever amount > they choose(with a minimum of course)? How can i sort the users based off > of the amount that they have paid over a thirty day period? > > > Also, my second thought was to just have everyone pay a flat rate. The > problem with that is that i don't know how to track if they paid or not. > How can i track the amount that a user pays? > > Any help would be appreciated! > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.