summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-02-02 17:53:21 -0500
committerJules Laplace <jules@okfoc.us>2015-02-02 17:53:21 -0500
commit22447d0ef21f8d4488ea1baab073801d8407acab (patch)
treeb87f4aee86f3d61c4434a2b33e4efdcc2e7229bf
parentca838d172cbd7fca1f2cba3bb1f095821710920a (diff)
parent72754ed88f7dfed9b80f5a46cd11550aac11cf1e (diff)
Merge branch 'subscriptions' of github.com:okfocus/vvalls into subscriptions
-rw-r--r--server/lib/webhook/webhook.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/lib/webhook/webhook.js b/server/lib/webhook/webhook.js
index 9e3a4d3..58a13ca 100644
--- a/server/lib/webhook/webhook.js
+++ b/server/lib/webhook/webhook.js
@@ -1,5 +1,4 @@
// // where should this live?
-// app.get('/subscribe/webhook', views.subscription.webhook);
/*
app.use(express.basicAuth(function(user, pass, callback) {
@@ -111,8 +110,8 @@ var subscribe = module.exports = {
*/
// payments
successful_payment_notification: function(data, user){
- var account = data.account
- user.last_charged = new Date(data.transaction.date)
+ var account = data.account[0]
+ user.last_charged = new Date(data.transaction[0].date[0]._)
user.save(function(){
})
},