Replies: 1 comment
-
Closing due to inactivity. It's not your fault, this is 100% mine. If you still have questions please feel free to reopen so I know. Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi to everyone,
i've checked out the documentation and the sample code but i'm missing something out.
Following the stripe documentation it says that the standard way to implement elements is to first get the client secret from the server ( after creating a payment intent ) and then create the element on the client side passing in the clientSecret just created.
https://stripe.com/docs/payments/quickstart
I've implemented the server side and it correctly returns the clientSecret but in the sample code of the vue-stripe i see that no clientSecret is being passed just the only prop being passed is the publishablekey.
https://vuestripe.com/stripe-elements/card
Diving into the code i saw that in the elementOptions i can find the clientSecret property so created it the data of the parent component and tried to pass it as a prop but it is not working.
Here a sample of what i've tried to do:
Someone more expert can kindly post a sample code of how to pass the retrieved clientSecret to the stripe-element-card?
thank you very much for the support
Beta Was this translation helpful? Give feedback.
All reactions