#zotov_andrew
1 messages ยท Page 1 of 1 (latest)
Hi what do you need help with?
Where are you getting that error? On your server?
local server, but i have internet how u see )
Gotcha. Could be a network configuration issue. Recommend running this to help troubleshoot: https://github.com/stripe/stripe-reachability
What was the result
I don't think that's the result of running stripe-reachability
It's just a shell script
That error is a PHP error
yes I show it's doesnt help, how i can fix that >
I don't understand
You ran stripe-reachability?
What was the result of running the script
Ok. In your cli can you just try the same api call from your code in CURL: https://stripe.com/docs/api/checkout/sessions/create?lang=curl
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
it's so long I must refactor all of code for that
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
You should be able to mostly copy and paste the example here: #1152251999199449150 message with maybe a few modifications
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
what price.... if problem say with connect...and broke site
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
just test key
That's sensitive data. You need to roll it now: https://stripe.com/docs/keys#rolling-keys
Still shouldn't send test keys
I said to paste price id
But now i must made more then 100 test orders with different price, and must all of them send u ?
What?
what price id u need ?
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
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
Where I Must find that price ?
Please just copy that id and paste it here
That's all I'm asking
Paste it in this discord thread
curl https://api.stripe.com/v1/checkout/sessions
-u sk_test.......:
--data-urlencode success_url="http://l-fut/success"
-d "line_items[0][price]"=price_H5ggYwtDq4fbrJ
-d "line_items[0][quantity]"=2
-d mode=payment
Oh hm that is a testmode price and exists on acct_1G0x8ZDEuExQvGvG. Would make sure you're using an api key from that account
In any rate, it does look like you can reach our server at least via the cli
again, today all day I made test orders, but now I lost connect, how we can fix that ? maybe some limits ?
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?
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
What I must show or to do to fix ?
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?
Okay so that is looking good
And you can make a basic curl request to Stripe?
wich one ?
curl https://api.stripe.com/v1/balance \
-u sk_test_xxxxx
Relace the sk_test_xxxx with your Test mode secret key
Please be specific about where you are running each command
The second one? I don't see the attachment you are highlighting.
Okay so you are able to reach Stripe APIs there. Now what is the next state of your question?
What "site"?
local
Okay, that looks like the error is coming from your PHP code. What is the code trying to do?
when I click this button i start redirect with this code
What button? What code?
And where is this code running?