- Nov 22, 2019
-
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
- Nov 21, 2019
-
-
Jean-Paul Calderone authored
A POST to the charge endpoint is not actually a simple request according to the CORS spec but this demonstrates that the CORS middleware at least fits in place. The next step is to replace simpleCors with a policy that's compatible with use of our endpoint.
-
- Nov 20, 2019
-
-
Jean-Paul Calderone authored
-
- Nov 19, 2019
-
-
Jean-Paul Calderone authored
-
- Nov 08, 2019
-
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
- Nov 07, 2019
-
-
Ramakrishnan Muthukrishnan authored
This is to make sure that we don't leak keys in the argument and hence in logs etc.
-
- Nov 06, 2019
-
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
Ramakrishnan Muthukrishnan authored
let more "fixed" parameters come first and then the dynamic ones so that one can do currying with the immutable parameters applied.
-
Ramakrishnan Muthukrishnan authored
Stripe developer dashboard provides a few keys and we specifically need to use the secret key.
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
If for "some reason" Stripe servers returned a mismatched voucher code, return http 500 status.
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
- Nov 05, 2019
-
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
Mark the voucher as paid if the stripe charge API returns a Charge object.
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
The skeleton is in place, a lot of actual work still needs to be done.
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
- Oct 29, 2019
-
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
- Oct 25, 2019
-
-
Jean-Paul Calderone authored
Also, explode the tuple that made its way into `redeemVoucherHelper`
-
- Oct 24, 2019
-
-
Ramakrishnan Muthukrishnan authored
`redeemVoucher' reads stuff from the db, makes decisions and then writes to the db. However if there is another client doing a simultaneous `redeemVoucher' for the same `voucher', then both of them would redeem the voucher, which is incorrect. The operations should have exclusive access to the db and this is achieved with `withExclusiveTransaction`.
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
Vouchers table contain all paid vouchers, so to find if a given voucher is unpaid, all we need to do is check membership in the `vouchers' table.
-
Ramakrishnan Muthukrishnan authored
-