Initial support for Stripe (And Improve Paypal)
[hcoop/portal.git] / money.sig
index 4195a87..d3d591d 100644 (file)
--- a/money.sig
+++ b/money.sig
@@ -14,6 +14,13 @@ sig
     val listUsers : int -> (bool * Init.user) list
     (* List users and indicate whether they participated in a transaction *)
 
+    type stripePayment = {charge_id : string, webuser_id : int, card_name : string, paid_on : string, gross_cents : int, fee_cents : int, net : real}
+
+    val listUserPendingStripePayments : int -> stripePayment list
+    val listAllPendingStripePayments : unit -> stripePayment list
+    val lookupStripePayment : string -> stripePayment
+    val applyStripePayment : stripePayment -> int
+
     val lookupHostingUsage : int -> string option
 
     type charge = {trn : int, usr : int, amount : real}