Stripe returning token but can access it

半城伤御伤魂 提交于 2020-01-05 09:08:56

问题


I am getting a stripe token back from my stripe.tokens.create now I can assign it to a variable inside it but I need to call that variable outside the callback. I was thinking global variable but then thought it might not work. I know the code examples I have found use req.body.stripeToken but my req.body comes back with a blank object {}. I can not find any guides on this for Node.js only stuff like Ruby and PHP.

来源:https://stackoverflow.com/questions/46669259/stripe-returning-token-but-can-access-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!