Skip to content

Commit f32ad22

Browse files
authored
chore: update README to fix undifined error with ref (#16)
1 parent 45d2427 commit f32ad22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ export default defineComponent({
108108
109109
const pay = () => {
110110
// Get stripe element
111-
const cardElement = card.stripeElement
111+
const cardElement = card.value.stripeElement
112112
113113
// Access instance methods, e.g. createToken()
114-
elms.instance.createToken(cardElement).then((result: object) => {
114+
elms.value.instance.createToken(cardElement).then((result: object) => {
115115
// Handle result.error or result.token
116116
console.log(result)
117117
})

0 commit comments

Comments
 (0)