I'm working on setting up recurring payments with stripe. I'm using react-stripe-elements to collect card information and it looks like there's two ways to save a card for later:
this.props.stripe.createToken()
this.props.stripe.createSource()
Then create a customer on the backend:
stripe.customers.create({ source: tokenId })
stripe.customers.create({ source: sourceId })
The result in stripe dashboard:
- sourceId card
My question is what is the difference between these two patterns? Should I be using one instead of the other? I notice in the tokenId pattern the card says cvc/zip check passed, while the card doesn't say that in the sourceId pattern. But the sourceId pattern also explicitly says the card is chargeable and reusable, does that imply that the card saved from using the tokenId pattern is not reusable? Are the logs/events in the sourceId card more useful? The return object structure for the two patterns is also different.
Any help would be much appreciated, thanks in advance!