You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Every component will:
98
98
The components bubble up all of [the JavaScript events that can be handled by the Stripe Element in `element.on()`](https://stripe.com/docs/elements/reference#element-on) from the Ember component using the following actions:
99
99
100
100
-`blur`
101
-
-`change` (also sets/unsets the `error` property on the component, which can be yielded with the block)
101
+
-`change` (also sets/unsets the `stripeError` property on the component, which can be yielded with the block)
102
102
-`focus`
103
103
104
104
You could handle these actions yourself, for example:
@@ -119,14 +119,14 @@ This addon gives you components that match the different [Element types](https:/
119
119
120
120
### Block usage with `options`
121
121
122
-
In addition to the simple usage above, like `{{stripe-card}}`, you can also yield to a block, which will yield both an `error` object and [the `stripeElement` itself](https://stripe.com/docs/elements/reference#the-element).
122
+
In addition to the simple usage above, like `{{stripe-card}}`, you can also yield to a block, which will yield both an `stripeError` object and [the `stripeElement` itself](https://stripe.com/docs/elements/reference#the-element).
123
123
124
-
For example, you can choose to render out the `error`, as below (runnable in our dummy app).
124
+
For example, you can choose to render out the `stripeError`, as below (runnable in our dummy app).
125
125
126
126
```hbs
127
-
{{#stripe-card options=options as |stripeElement error|}}
128
-
{{#if error}}
129
-
<p class="error">{{error.message}}</p>
127
+
{{#stripe-card options=options as |stripeElement stripeError|}}
0 commit comments