#pierrala68
1 messages · Page 1 of 1 (latest)
What's the checkout session ID?
the checkout session ID is "API key public" ?
No
How do you integrate checkout? Are you using a 3rd-party plugin or you wrote code by yourself?
I wrote the code by myself
OK, then you can find the checkout session ID in the response of checkout session creation request
I have the impression that I have not installed the system correctly because I have not received a response from my session creation request
do you have simple installation documentation and can you help me install it?
No, there's no installation guide for Stripe. If you have challenge in coding, you can use payment linke, our no-code solution https://stripe.com/docs/payment-links to start accepting payments with stripe
I can code but installing Stripe is complex to understand. I will need help with the installation if you agree to make sure I am taking the right path
I have a website that needs to communicate with stripe to accept payments automatically.
Got it, then I'd highly recommend you to use payment link
but for the moment we already have an integration started, I am trying to learn the integration into the site, there is really no doc for the complete installation in a site?
I already use the other system, I would just like to improve my site
How did you integrate?
I used an installation method suggested on this page: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=embedded-checkout
sounds good, what is your specific question?
I did part 1 and 2, but in part 2 I don't know where to put the file
for information, I used the PHP file
https://stripe.com/docs/checkout/embedded/quickstart
so we tried to follow this documentation, but everything seems good, but in the end nothing is displayed on the page and the error (sent initially) appears.
where to put the file
it's a PHP file that you put on your server and call itcreate-checkout-session.php
also do you know what Composer is?
because you have to use that to install the dependencies
yes, on the server, but where on the server? do we call it in our payment page?
we installed the composer with all the stripe files
not sure what you mean by 'where', you put it wherever you put the rest of your PHP scripts. And yes, the payment page calls it(you see in step 3 it uses fetch to make an Ajax/XHR request to that script)
I'll try again, I'll get back to you when I've done so
https://dev.dayhosting.fr/commandes/create-checkout-session.php
this is the error we get when following this documentation
sounds like you did not use Composer then, as I was mentioning.
the error is telling you that vendor/autoload.php does not exist, which is something that Composer creates when it runs.
if you're just using static hosting, maybe don't bother with Composer at all. You can just download the ZIP of our library, unzip, upload to your server, and include it directly : https://github.com/stripe/stripe-php#manual-installation
However, we installed the composer correctly, we have lots of files that he added
fair enough, but then why does it tell you that file vendor/autoload.php is not found?
So either you need to figure that part out, or just do the manual install described above
oh we found the solution, but we have the secret client which now appears on the page
not sure what you mean, could you elaborate?
We managed to find the ventor file, now that it is linked, the page https://dev.dayhosting.fr/commandes/create-checkout-session.php only shows us the "Secret client"
yep that's perfect and what it's supposed to do
so now you continue with the rest of the guide
but this file that we open on the web, isn't it supposed to be the page with the design of the site?