From 4b76b92880c66d729b65e2ff88538cbf499de7b3 Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Thu, 1 Dec 2022 12:54:21 +0000 Subject: [PATCH] Update example in README to fix undifined error with ref --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db5e79a..4fcc311 100644 --- a/README.md +++ b/README.md @@ -108,10 +108,10 @@ export default defineComponent({ const = pay () => { // Get stripe element - const cardElement = card.stripeElement + const cardElement = card.value.stripeElement // Access instance methods, e.g. createToken() - elms.instance.createToken(cardElement).then((result: object) => { + elms.value.instance.createToken(cardElement).then((result: object) => { // Handle result.error or result.token console.log(result) })