Skip to content

Commit

Permalink
Add donation amount to cookie so that it is accessible in the charge …
Browse files Browse the repository at this point in the history
…route

relates #25 #68 #85
  • Loading branch information
joeylouise committed May 11, 2017
1 parent a9d43fb commit f77f2e4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/routes/payment-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module.exports = {
method: 'POST',
path: '/payment-processor',
handler: (req, reply) => {
reply.view('payment-processor');
}
}
req.cookieAuth.set(Object.assign({},req.auth.credentials,{
data: req.payload,
}))
reply.view('payment-processor', { data: req.payload });
},
};

0 comments on commit f77f2e4

Please sign in to comment.