{"action":"created","issue":{"url":"https://api.github.com/repos/code-corps/ember-stripe-elements/issues/9","repository_url":"https://api.github.com/repos/code-corps/ember-stripe-elements","labels_url":"https://api.github.com/repos/code-corps/ember-stripe-elements/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/code-corps/ember-stripe-elements/issues/9/comments","events_url":"https://api.github.com/repos/code-corps/ember-stripe-elements/issues/9/events","html_url":"https://github.com/code-corps/ember-stripe-elements/issues/9","id":238853033,"number":9,"title":"How do I get at the values in the element?","user":{"login":"Jordan4jc","id":1076459,"avatar_url":"https://avatars0.githubusercontent.com/u/1076459?v=4","gravatar_id":"","url":"https://api.github.com/users/Jordan4jc","html_url":"https://github.com/Jordan4jc","followers_url":"https://api.github.com/users/Jordan4jc/followers","following_url":"https://api.github.com/users/Jordan4jc/following{/other_user}","gists_url":"https://api.github.com/users/Jordan4jc/gists{/gist_id}","starred_url":"https://api.github.com/users/Jordan4jc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jordan4jc/subscriptions","organizations_url":"https://api.github.com/users/Jordan4jc/orgs","repos_url":"https://api.github.com/users/Jordan4jc/repos","events_url":"https://api.github.com/users/Jordan4jc/events{/privacy}","received_events_url":"https://api.github.com/users/Jordan4jc/received_events","type":"User","site_admin":false},"labels":[{"id":543971126,"url":"https://api.github.com/repos/code-corps/ember-stripe-elements/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-27T13:35:08Z","updated_at":"2018-02-04T16:59:03Z","closed_at":null,"author_association":"NONE","body":"I'm just a bit confused as to how I get the values entered in the `stripe-card` element. I don't want to use the block form because I have a submit button outside of this element that will send along some other data to a server endpoint that creates a paysource in the customers stripe account. Can I have the values bound to some sort of controller / component property so I can get at those later when the user hits the submit button I have outside of the element?"},"comment":{"url":"https://api.github.com/repos/code-corps/ember-stripe-elements/issues/comments/362921819","html_url":"https://github.com/code-corps/ember-stripe-elements/issues/9#issuecomment-362921819","issue_url":"https://api.github.com/repos/code-corps/ember-stripe-elements/issues/9","id":362921819,"user":{"login":"caltabid","id":34002251,"avatar_url":"https://avatars1.githubusercontent.com/u/34002251?v=4","gravatar_id":"","url":"https://api.github.com/users/caltabid","html_url":"https://github.com/caltabid","followers_url":"https://api.github.com/users/caltabid/followers","following_url":"https://api.github.com/users/caltabid/following{/other_user}","gists_url":"https://api.github.com/users/caltabid/gists{/gist_id}","starred_url":"https://api.github.com/users/caltabid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caltabid/subscriptions","organizations_url":"https://api.github.com/users/caltabid/orgs","repos_url":"https://api.github.com/users/caltabid/repos","events_url":"https://api.github.com/users/caltabid/events{/privacy}","received_events_url":"https://api.github.com/users/caltabid/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T16:59:03Z","updated_at":"2018-02-04T16:59:03Z","author_association":"NONE","body":"I have a similar question: can you please provide an example without {{stripe-card}} but exploiting {{stripe-card-number}} and {{stripe-card-expiry}}?\r\nI tried this:\r\n[template]\r\n      {{#stripe-card-number class=\"input\" as |element|}}\r\n        {{stripe-card-expiry class=\"input\"}}\r\n        {{stripe-card-cvc class=\"input\"}}\r\n        <button {{action \"stripeSubmit\" element}}>Submit</button>\r\n      {{/stripe-card-number}}\r\n        {{#if stripeToken}}\r\n          stripeToken is: {{stripeToken.id}}\r\n        {{/if}}\r\n [controller]\r\nstripeToken: null,\r\nactions: {\r\n    stripeSubmit(el) {\r\n      let stripe = this.get('stripev3');\r\n      stripe.createToken(el).then(({token}) => {\r\n        this.set('stripeToken', token);\r\n      });\r\n    },\r\n}\r\nIn this case createToken only sends the card number thus getting back a \"Missing required param: card[exp_month].\".\r\nIn stripe documentation for createToken: \"https://stripe.com/docs/stripe-js/reference#stripe-create-token\" they say: \"...The Element pulls data from other Elements you’ve created on the same instance of elements to tokenize...\", but this seems not happening.\r\nI also tried to put the elements in a form:\r\n      <form {{action 'stripeSubmit' elements}}>\r\n        {{stripe-card-number}}\r\n        {{stripe-card-expiry }}\r\n        {{stripe-card-cvc}}\r\n        <button type=\"submit\">Pay</button>\r\n      </form>\r\nbut when I press the button Pay, calling \"stripeSubmit\" function, \"elements\" is \"undefined\" and I don't know what else I can use.\r\nCan you help?"}}
{"actor":{"display_login":"caltabid"}}