#candycan
1 messages · Page 1 of 1 (latest)
This is a Node.js example. But I believe you're using PHP, correct?
yes! im using PHP
Hi! I'm taking over this thread.
Are you using Composer?
If you don't want to use composer, then you could do this: https://github.com/stripe/stripe-php#manual-installation
And if you do use composer, run composer require stripe/stripe-php to install all files needed, including ../vendor/autoload.php
i've extracted all files into same directory. when I click "checkout" button, I got above.
I've replaced " require_once '../vendor/autoload.php'; " with " require_once '/path/to/stripe-php/init.php'; " (as in github installation guide)
What's the response that you got from the backend?
Sry, what do u mean "response from backend" ?!? when I click checkout, i got above screen.
Are you sure that your backend server is running? Also can you share the exact code that is throwing that error?
And do you have an error logs in your backend?
yes, I screenshot the error & share here.
Can you answer the questions I asked above?
- Are you sure that your backend server is running?
- Can you share the exact code that is throwing that error?
- Do you have an error logs in your backend?
Q 1. > Yes, running
Q 2. > JSON output on screenshot.
more, "raw data": <br />
<b>Fatal error</b>: Uncaught Could not connect to Stripe (https://api.stripe.com/v1/checkout/sessions). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/stripestatus, or let us know at support@stripe.com.
(Network error [errno 7]: Failed to connect to api.stripe.com port 443: Bad access)
thrown in <b>C:\xampp\htdocs\Mix\st\1_stripe-sample-code\public\lib\HttpClient\CurlClient.php</b> on line <b>579</b><br />
Thanks, that's a useful error message!
Looks like your server is blocking requests to Stripe.
Maybe you could try this: https://github.com/stripe/stripe-reachability
thanks, but now I uploaded to my webserver, got same error:
<br />
<b>Fatal error</b>: Uncaught Could not connect to Stripe (https://api.stripe.com/v1/checkout/sessions). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/stripestatus, or let us know at support@stripe.com.
(Network error [errno 7]: )
thrown in <b>/home/www/myweb.com/stest/public/lib/HttpClient/CurlClient.php</b> on line <b>579</b><br />
I'll chk it n update
my local & web servers accessed any APIs & websites. But I dont know why its not accessible ?!?
Any special framework/service/plugin need to work stripe on our web server
?
Nope you should only need to install that stripe-php library and need network access to our API endpoints
And did the reachability script say anything?
its only .sh script. I dont know how to run
https://www.myweb.com/bin/test.sh - shows:
That isn't how to run that script, that is just your site saying that it doesn't have that file hosted on it
Unfortunately I can't give guidance on how to run a bash script on your specific setup. A good way to start would be to look up "how to run bash scripts on Windows" or Mac or Linux or whatever you are using
thanks
I imagine that stripe payment integration is very easy
but its too complicated ?!?
Sorry to hear. Once you have this part set up it should be easier but unfortunately we can't advise on how to set up this server to run our code
I was very excited at first! but now, how can I move next step???
i experienced with payl, monkers, skr . All provide "copy-paste" code with few constants/variables setup
few have some implementation issues, but
I messed now, pls guide us our next/alternate option, pls
Checkout is a low code option, have you looked in to our no code options? https://stripe.com/docs/no-code
yes, it send us: https://dashboard.stripe.com/payment-links then https://dashboard.stripe.com/payment-links/create
its "product based", we need to create products at stripe, but we have our products database, own shopping cart and order managements
For figuring out how to work with our no code options I would recommend talking to our support team https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
thanks for your great support!