node.js - Join payments with database e.g. MongoDB -
i looking in google solutions problem or tutorials, found nothing. try biuld app store online courses, have no idea how join payments (e.g. paypal) , videos. videos locked, if user make payment video unlock. have no idea join payments database e.g. payments:true/false
lock/unlock course. know tutorials or articles in case?
assuming using sessions store logged in users (if not that's in to) when person pays can add session store: req.user.paid = true
example. can use middleware check session variable when access route video in. add field user document indicating paid. use field set status session next time log in.
wiki
Comments
Post a Comment