Comments (2)
Hi,
if your goal is to update clientSecret
in the elementsOptions
, then yes - what you are doing makes sense. Actually, there is a watcher attached to the elementsOptions (reactive object), update method is called automatically on change
https://github.com/ectoflow/vue-stripe-js/blob/main/src/components/StripeElements.vue#L43
However it is absolutely fine in my opinion to call it manually, it it's a good way to learn.
from vue-stripe-js.
Check this example:
vue-stripe-js/examples/CardOnly.vue
Lines 34 to 36 in a9e4ecc
from vue-stripe-js.
Related Issues (20)
- how to clear StripeElement? HOT 3
- StripeElement.vue `options` are considered optional but generate console warning when left empty HOT 7
- Themes HOT 2
- StripeElement disappear in unmounted cycle life. HOT 1
- How to style Stripe Element? HOT 3
- clientSecret HOT 1
- Can I use this library with Payment Elements? HOT 12
- Does this library support the new order api? HOT 4
- Can you provide a full example code with Payment Elements with create a payment intent first (client secret ..) HOT 7
- Received unknown parameters: type, elements, options, stripeElement HOT 1
- Typo error in step 3 in README
- I get a compile error when using vite-ssg HOT 2
- npm install doesn't work HOT 1
- Updates required in README.md HOT 1
- Implement multiple elements HOT 2
- Could this work with Pricing Tables? HOT 1
- payment Element didn't mount normally
- Example of working PaymentIntent
- Why does the readme install this as a dev dependency? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-stripe-js.