#djk3600-elements-multiplequestions

1 messages ยท Page 1 of 1 (latest)

loud glenBOT
marsh crypt
#

hey bro ๐Ÿ™‚

raven fox
#

Hey @marsh crypt I'm happy to help though I would need to know what the question is about!

marsh crypt
#

Of course, thanks a ton for taking the time to help me firstly. I really appreciate it

#

Okay got a couple of questions. First one is

#

I have implemented stripe and it works perfectly on my localhost. I deployed my app and it doesn't work

#

first thing is, this is in the console?

#

what does this mean?

raven fox
#

That message says that if you use your Live API key pk_live_123 the page has to be loaded over HTTPS not HTTP. If you use your Test API key pk_test_123 then it's fine

#

djk3600-elements-multiplequestions

marsh crypt
#

Okay so I am currently still using my test API key

raven fox
#

so then it's just a warning and is not a problem

marsh crypt
#

REACT_APP_STRIPE_PK=pk_test_51M47.....

#

ahhh okay nice

#

you know your stuff koopajah!!

#

okay second question if thats okay ๐Ÿ™‚

#

I am facing this issue, notably I do not get this in localhost

raven fox
#

the second error is trying to post to localhost:4242 which doesn't make sense if you've deployed the code to a remote server

#

you must have hardcoded something in your code

marsh crypt
#

ahhhhh

#

okay so I found it

#
"http://localhost:4242/create-payment-intent",
      {
        items: cartItems,
        userEmail: userEmail,
        shipping: shippingAddress,
        billing: billingAddress,
        description,
      }
#

do I change this to my site?

#

so my site is called

#

so would it be this?

raven fox
#

Possibly

#

That's really more something you (as the web developer) figure out in that case. Completely depends on how you built your website, your code, etc.

marsh crypt
raven fox
#

I mean it depends how your entire website was built, I don't know anything about your set up.