possible duplicate: Parse.com create stripe card token in cloud code (main.js)
In my application a person can ask another person for a Task(a bit like Uber). The person who requests the task is Client
& person doing that task is called Doer
. Client
& Doer
both can mark the task done. When a task is done then I want to deduct payment from Client's
credit card into my bank account with the help of Stripe. My backend is managed with Parse
so I want to take advantage of Cloud Code.
I've written my cloud code by following Parse's
sample code ParseStore
Now I can generate token with credit card information(gathered on signup) on Client's side and then generate token for my transaction function on cloud. But If Doer completes the job then I'm not able to generate token on Doer's end because he/she will not have access to Client's credit card. My Question is, Can I generate this token with a CloudCode
function too?