codidact / donations Goto Github PK
View Code? Open in Web Editor NEWDonation list
License: MIT License
Donation list
License: MIT License
If a logged-in user starts a donation but doesn't complete it, we (once) send email about it. The email is well-written and not naggy, but it does assume that the incomplete transaction was the user's doing. โI think we intended it for the case where the user might have meant to complete the transaction and maybe even thought it was complete (missed a final click).
We recently had some problems with Stripe, so users trying to make donations got error messages. Then they got email asking about the incomplete transaction. Beyond Stripe errors, we could theoretically have some other server error, like the API call failing or timing out or something. Can we not send the email if the attempted donation produced an error?
I really hope this is a rare occurrence, but it's also something that can aggravate the affected people. Can we add this check to our send-email logic?
The donations server fails with "Internal Server Error" if there is an entry in the donations table. I've tried a bunch of permutations, including amounts with and without currency symbols. I can't find a way to enter data that doeesn't cause a failure.
Here's an example from the admin console:
Public name: Another test
Message: Keep up the good work :-)
Date: 2022-01-01
Amount: $5.00
Link: (a valid link to a Stripe transaction)
When I deleted that entry, the page worked again (with no data, of course):
I then created a simpler entry: name, message, date, amount, but no link. Failed.
I removed the amount: failed.
Then the message: failed.
Then the date (so there is now only a name): failed.
Removed even the name: failed.
Removed the now-empty entry: worked again.
This is a blocker for publicly thanking our donors.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.