title: Source: 'tok_visa' in Stripe
body: <p>I'm trying to get Stripe going, and I'm almost there but there is one confusing thing. The <code>source: 'tok_visa'</code> part. It looks like it can be 'tok_mastercard', 'bank_account' and so forth. The problem is: How am I supposed to know which one to use? The docs say "obtained with Stripe.js", which is cool, but I cannot find where exactly this comes from.</p>
  
  <p>Can anyone explain? That's the only confusing part so far.</p>
  
  <p>Here's my code in Node so far:</p>
  
  <pre><code>router.post('/charge', (req, res, next) =&gt; {
      var amount = 10000; // in cents
      stripe.customers.create({
          email: req.body.email,
          source: req.body.token
      }).then(customer =&gt; {
          req.user.stripeId = customer.id;
          req.user.save();
          stripe.charges.create({
              amount,
              description: "Charge for the example",
              currency: 'cad',
              source: , // obtained with Stripe.js
              customer: customer.id,
          })
      }).then(
          charge =&gt; res.render("payment/charge", {
              title: "Payment report",
              user: req.user
          })
      ).catch(e =&gt; console.log(e));
  });
  </code></pre>