#gisho_02527
1 messages · Page 1 of 1 (latest)
Hello gisho_02527, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• gisho_02527, 1 days ago, 26 messages
• gisho_02527, 1 days ago, 12 messages
Hi there 👋 double checking, are you integrating directly with Stripe by following the provided guide, or are you trying to configure a Stripe integration that is being provided to you by Wix?
Option #1.
Need to get the payment elements implemented
Since we cant pass raw cc details
TypeError: Cannot read properties of null (reading 'elements')
at eval (c1dmp.js:12:25)
Get the following error, indicating stripe is null
What line is throwing that error? Is stripe being initialized before that?
// Set up Stripe.js and Elements to use in checkout form, passing the client secret obtained in a previous step
const elements = stripe.elements(options);
This line
Pretty much need some sort of way to collect and store customer cc details
We had it setup to use stripe api and store directly which has been working fine in test mode
Now we're struggling to go live as it's not supported
I'm not certain, but my suspicion is that since you're initializing stripe inside of that .onReady callback, that stripe isn't initialized before it's referenced by other code.
Doesn't seem to be the case as all the relavent code is in the onready condition. Initially implemented without the onready as well and issue persists
ah, it is, lost track of that end bracket, hm
Hm, nothing is really jumping out at me. Just double checking, where you have PK_TEST currently, in your actual code that is replaced with your actual publishable key?
yeah it is
Hm, do you have a publicly available test site where I could look at what you have so far?