Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c720137734
Fetching contributors…

Cannot retrieve contributors at this time

file 79 lines (64 sloc) 4.683 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
Here are the final instructions in order to process the payments for the MLSS:

1) A feature was added to allocate money to applicants needing
financial support. So go through each applicant needing financial
support or maybe order the applicants by ratings and page through the
results one by one allocating money as needed.

2) Open a Google Checkout seller account for a given bank account:
https://checkout.google.com/sell/ It's very easy to open an account.
Use the mlss09cam@googlemail.com Google account to setup the account.

3) I will then send you a list of admitted applicants containing the
following fields:

applicant email, name, affiliated with cambridge, industry
researcher?, money given for financial support if any, money applicant
has to pay

The money the applicant has to pay depends on whether he was given
financial support, is an industry researcher or is affiliated with
Cambridge. Should this amount be in pounds or in dollars? The amount
we asked for financial support was in dollars, so should I do the
conversion?

4) Go to Tools > Send an invoice on your newly created Google Checkout
account. Send an email to each admitted applicant making sure the
right amount due is put. There should probably be a paragraph
explaining the amount due depending on whether the applicant received
financial support, is an industry researcher or is affiliated with
Cambridge. IMPORTANT make sure you check the option "Send me a copy of
this email". This email is the only way we can keep track of whether
the applicant has paid or not. There is also the Merchant admin
(https://checkout.google.com/sell/orders) but I think there isn't an
exact match between the applicant's email and the actual payee.

5) I will send you coma separated list of all undecided applicant's
emails (should we put these people on a waiting list?). The same with
all rejected applicants. A group bcc email could be sent to each group
using the MLSS Google email address.

6) After some deadline we then go through the emails received by
Google when a payment has been made. I could add a quick feature in
the admin to mark that the applicant has actually paid which will be
useful when making the badges. We can also start processing the
applicants who are on the waiting list.

This process could have been automatic using a low level API provided
by Google but I ran out of time. However if the admin is used for
subsequent MLSS then I'd be happy to add these features along with
with some simple stats such as admitted applicants by countries,
expertise etc ... as a pie.

Alex

# SQL QUERIES FOR PAYMENTS:

# Get all admitted applicants who are not industry researchers and not affiliates of the University.
select 'Name', 'Email', 'Occupation', 'Score', 'Financial Support Allocated', 'Amount Due'
union
(select concat(first_name, ' ', last_name), email, occupation, calculated_vote, grant_amount as financial_support, 900 - grant_amount as amount_due from applicants where status = 'admitted' and occupation != 'Industry Researcher' and affiliated = 0 order by calculated_vote desc
into outfile 'students.txt' fields terminated by ',' optionally enclosed by '"');

# Get all admitted applicants who are industry researchers and not affiliates of the University.
select 'Name', 'Email', 'Occupation', 'Score', 'Financial Support Allocated', 'Amount Due'
union
(select concat(first_name, ' ', last_name), email, occupation, calculated_vote, grant_amount as financial_support, 1500 - grant_amount as amount_due from applicants where status = 'admitted' and occupation = 'Industry Researcher' and affiliated = 0 order by calculated_vote desc
into outfile 'industry.txt' fields terminated by ',' optionally enclosed by '"');

# Get all affiliates of the University who have not been rejected.
select 'Name', 'Email', 'Occupation', 'Score', 'Financial Support Allocated', 'Amount Due'
union
(select concat(first_name, ' ', last_name), email, occupation, calculated_vote, grant_amount as financial_support, 300 - grant_amount as amount_due from applicants where status is NULL and affiliated = 1 order by calculated_vote desc
into outfile 'affiliates.txt' fields terminated by ',' optionally enclosed by '"');

# Get all applicants on the waiting list who are not affiliates of the University.
select 'Name', 'Email', 'Occupation', 'Score'
union
(select concat(first_name, ' ', last_name), email, occupation, calculated_vote from applicants where status is NULL and affiliated = 0 order by calculated_vote desc
into outfile 'waiting.txt' fields terminated by ',' optionally enclosed by '"');
Something went wrong with that request. Please try again.