#Valma
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Can you describe what the issue is?
So I want to test my integration, the problem is that my site code is on localhost:5500 and my php server is on localhost:8080. Is there a way of solving this issue ?
What do you mean "site code"?
My html, css file
Where the checkout button will be
Like the website files
You can take a look at my js and php files there -> https://github.com/Molpo456/Stripe
That isn't something that is controlled by Stripe. Why don't you just change your code?
I'm looking at your code but I'm not seeing what you are talking about here. Where do you see the "site code"?
The site code is not in it
Its very big
I'm basically saying if there's a way to use Stripe Checkout with a separate client and server
Because normally the client and server are in the same url
You mean like a single page app? I have a test integration that uses a REST API server with a separate Vue.js client and Checkout works just fine
No like a full website, and when you to to the checkout page and click on the Pay Now Button, I want to create a checkout session with the items on the cart and send the user to a Stripe Checkout Page
For that I'm using PHP for the Server Side
The folder that I send you, with the php, js, json code and stuff
Well my website folder is not in the same folder so when I start php on port 8080 for exemple it doesn't show my website because my website might be on 5500 for example
I'm sorry if that's kind of hard to understand
Is there maybe a tutorial on Stripe on how to set up Checkout Session in PHP
We support 7 different server side languages. You can review this tutorial on setting up Checkout and select PHP in the code windows: https://stripe.com/docs/payments/accept-a-payment?platform=web
You can also review a complete code example here: https://stripe.com/docs/checkout/quickstart
Happy to help ๐