#candycan

1 messages · Page 1 of 1 (latest)

exotic slateBOT
thin loom
#

Hi! Let me help you with this.

#

Are you referring to a specific doc/Github repo?

hollow bolt
#

for example:

#

its "download" zip sample file.

#

hello!

thin loom
#

This is a Node.js example. But I believe you're using PHP, correct?

hollow bolt
#

yes! im using PHP

languid anvil
#

Hi! I'm taking over this thread.

#

Are you using Composer?

#

And if you do use composer, run composer require stripe/stripe-php to install all files needed, including ../vendor/autoload.php

hollow bolt
#

Thank u so much!!

#

I'll chk n update u

hollow bolt
#

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)

thin loom
#

What's the response that you got from the backend?

hollow bolt
#

Sry, what do u mean "response from backend" ?!? when I click checkout, i got above screen.

languid anvil
#

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?

hollow bolt
languid anvil
#

Can you answer the questions I asked above?

  1. Are you sure that your backend server is running?
  2. Can you share the exact code that is throwing that error?
  3. Do you have an error logs in your backend?
hollow bolt
#

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

languid anvil
#

Thanks, that's a useful error message!

#

Looks like your server is blocking requests to Stripe.

hollow bolt
exotic slateBOT
hollow bolt
#

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

keen elk
#

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?

hollow bolt
#

Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: test.sh

If you think this is a server error, please contact the webmaster.
Error 500
myweb.com
Apache

keen elk
#

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

hollow bolt
#

thanks

#

I imagine that stripe payment integration is very easy

#

but its too complicated ?!?

keen elk
#

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

hollow bolt
#

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

keen elk
hollow bolt
#

its "product based", we need to create products at stripe, but we have our products database, own shopping cart and order managements

keen elk
#

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

hollow bolt
#

thanks for your great support!