#gisho_02527

1 messages · Page 1 of 1 (latest)

green carbonBOT
#

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

frail current
#

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?

subtle jay
#

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

frail current
#

What line is throwing that error? Is stripe being initialized before that?

subtle jay
#

// 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

frail current
#

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.

subtle jay
#

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

frail current
#

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?

subtle jay
#

yeah it is

frail current
#

Hm, do you have a publicly available test site where I could look at what you have so far?

subtle jay
#

yes

#

Seem to have found a solution from a wix thread. Thanks for youur help, will come back if I have any other issues!