Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Update example createToken usage #9

Merged
merged 1 commit into from May 14, 2017
Merged

Conversation

stephen
Copy link
Contributor

@stephen stephen commented May 14, 2017

The example code uses an owner property which doesn't
match the elements docs.

r? @michelle

The example code uses an `owner` property which doesn't
match the [elements docs](https://stripe.com/docs/elements/reference#stripe-create-token).
console.log('Received Stripe token:', token);
});

// However, this line of code will do the same thing:
// this.props.stripe.createToken({type: 'card', owner: {name: 'Jenny Rosen'}});
// this.props.stripe.createToken({type: 'card', name: 'Jenny Rosen'});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also type doesn't appear to be mentioned in the docs: https://stripe.com/docs/elements/reference#stripe-create-token

@michelle michelle self-assigned this May 14, 2017
@michelle michelle merged commit 0fdeea9 into stripe-archive:master May 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants