#zotov_andrew

1 messages ยท Page 1 of 1 (latest)

cyan plumeBOT
winged goblet
#

Hi what do you need help with?

dry tusk
#

Why I have this problem ?

winged goblet
#

Where are you getting that error? On your server?

dry tusk
#

local server, but i have internet how u see )

winged goblet
#

Could be a number of things. Are you using a vpn?

#

This is on your local machine?

dry tusk
#

Not vpn

#

yes local machine

#

Openserver program

winged goblet
dry tusk
#

will check

#

doesnt help

winged goblet
#

What was the result

dry tusk
winged goblet
#

I don't think that's the result of running stripe-reachability

#

It's just a shell script

#

That error is a PHP error

dry tusk
#

yes I show it's doesnt help, how i can fix that >

winged goblet
#

I don't understand

#

You ran stripe-reachability?

#

What was the result of running the script

dry tusk
winged goblet
#

Wait for it to finish

#

There should be 4 checks

dry tusk
#

show 4 and close i cant see

#

so fast

winged goblet
dry tusk
#

I cant change some code for another way, why this one no work now ?

winged goblet
#

What do you mean

#

Can you just try the create checkout session api call from your code (the one that's failing) from your cli (in cURL)

#

That will help us find out if it's a server configuration issue or a problem with your network

dry tusk
#

it's so long I must refactor all of code for that

winged goblet
#

I don't think you understand what I'm asking then. No refactor is needed

#

Just try creating a checkout session from your command window via curl

#

You don't need to change your code at all

dry tusk
winged goblet
#

So looks like you can reach our api

#

But yeah you're just providing a price id that doesn't exist in test mode

#

So this means it's a configuration issue with your server

#

Since you can reach our api via the cli on the same machine

dry tusk
#

what price.... if problem say with connect...and broke site

winged goblet
#

I don't understand

#

The error above is resource_missing

#

That indicates we can't find the price id you specified

#

You used your test api key, so I assume that price id doesn't exist in test mode on your account

#

If you paste it here I can confirm

#

No no

#

Don't ever share api keys

dry tusk
#

just test key

winged goblet
#

Still shouldn't send test keys

#

I said to paste price id

dry tusk
#

But now i must made more then 100 test orders with different price, and must all of them send u ?

winged goblet
#

What?

dry tusk
#

what price id u need ?

winged goblet
#

I just need the price id...

#

The one in the screenshot you shared above

#

The one giving you the error

#

There. You're getting a no such price error

#

Just paste the price from that screenshot please

dry tusk
#

okay will find now

#

that not problem ?

winged goblet
#

I understand the problem

#

I'm trying to help you

#

The reason I had you do a curl request in your cli is to diagnose whether the issue is with your network or whether the issue is with your server configuration

#

The fact that you're able to reach stripe via the cli indicates it's not a network issue since it's the same machine and same network

#

The fact that you're unable to reach stripe via your openserver indicates it's a server configuration issue

dry tusk
#

Where I Must find that price ?

winged goblet
#

price_

#

It's in the screenshot

#

So copy it from your cli

dry tusk
#

where I must find my price ?

winged goblet
#

Please just copy that id and paste it here

#

That's all I'm asking

#

Paste it in this discord thread

dry tusk
winged goblet
#

Oh hm that is a testmode price and exists on acct_1G0x8ZDEuExQvGvG. Would make sure you're using an api key from that account

cyan plumeBOT
winged goblet
#

In any rate, it does look like you can reach our server at least via the cli

dry tusk
#

again, today all day I made test orders, but now I lost connect, how we can fix that ? maybe some limits ?

stoic radish
#

Hi ๐Ÿ‘‹

I"m stepping in as @winged goblet needs to go. Can you please summarize the question you are asking here? What is the specific issue you are having?

dry tusk
stoic radish
#

Okay that is a screenshot of some UI I am unfamiliar with. But it seems to point to the same network error that @winged goblet was trying to help you with

dry tusk
#

What I must show or to do to fix ?

stoic radish
#

This appears to be an issue with your network provider. We can only give advice on Stripe APIs

#

Have you reached out to openserver to see how you can address this?

#

Can you try running a simple ping command? Like ping google.com to test if you can reach the internet?

dry tusk
#

ping from openserver

stoic radish
#

Okay so that is looking good

dry tusk
#

ping from laptop

stoic radish
#

And you can make a basic curl request to Stripe?

dry tusk
#

wich one ?

stoic radish
#
curl https://api.stripe.com/v1/balance \
  -u sk_test_xxxxx
#

Relace the sk_test_xxxx with your Test mode secret key

dry tusk
#

nothing happend

stoic radish
#

Where is that code running?

#

Can you try it directly yourself on your laptop?

dry tusk
stoic radish
#

Please be specific about where you are running each command

dry tusk
stoic radish
#

The second one? I don't see the attachment you are highlighting.

dry tusk
#

green background

#

openserver

stoic radish
#

Okay so you are able to reach Stripe APIs there. Now what is the next state of your question?

dry tusk
#

From project CLI core (FROM IDE)

#

but on the site, still doesn't work

stoic radish
#

What "site"?

dry tusk
stoic radish
#

Okay, that looks like the error is coming from your PHP code. What is the code trying to do?

dry tusk
#

when I click this button i start redirect with this code

stoic radish
#

What button? What code?

stoic radish
#

And where is this code running?

dry tusk
#

I find a problem

#

so sorry

#

have a Nice day, thanks