Open BobEvans opened 9 years ago
From previous issue:
Have a new server endpoint that allows querying, by experimentId for payout information.
This should return a list of participant ids to pay and the amount to pay each participant.
One thing to consider is that the payment query service should do OAuth on the part of an admin of the study. So, in the payment fulfillment tool that queries Paco, the admin of an experiment can OAuth that service to Paco on their behalf and then the service can call this endpoint to populate a payment fulfillment.
takes experimentId, validates admin status of requestor. Returns list of per participant payout (participant, payment [(amt, currency)|giftcard?]