Open tintinnabulate opened 5 years ago
Just use Stripe_Customer_ID
. In the first version of the app I wasn't populating the DB with Stripe_Charge_ID
and I'm too lazy to back-populate them.
https://github.com/skip2/go-qrcode
import qrcode "github.com/skip2/go-qrcode"
var png []byte
png, err := qrcode.Encode("https://example.org", qrcode.Medium, 256)
Use SendGrid to send the emails:
https://cloud.google.com/appengine/docs/standard/go/mail/sendgrid?authuser=1
It would be nice if the User table had two additional fields: Is_QR_Sent : Boolean := False
and Is_QR_Validated : Boolean := False
.
When I've emailed all registrants (that have registered to date), set Is_QR_Sent
to True
(that way, I can email new registrants easily, because they'll still have Is_QR_Sent = False
)
When a registrant has their QR code scanned, update Is_QR_Validated
accordingly.
This way, it's easy to see the status from the same registrations.csv
(See #24) that the Registrations Chair is used to.
Now that we're on Go 1.12, I'll need to rebase from branch master
and port over changes piece-meal from branch qr_code
https://registration-webapp/qr/Stripe_Charge_ID
?)Stripe_Charge_ID
s associated with it? Ideally send 1 email with multiple QR codes to save spamming them/save confusion.https://registration-webapp/qr/Stripe_Charge_ID
func getStripeChargeID(ctx context.Context, r *http.Request, w http.ResponseWriter)
does a database lookup to see if thatStripe_Charge_ID
is NOT in theScanned
table. If it is, Fail, If it's not, then check its in theUser
table. If it is, then Succeed, if it's not then Fail