#clairep_java-error
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- clairep_code, 1 day ago, 14 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1248299039032737795
đ Have more to share? Add details, code, screenshots, videos, etc. below.
I get a window where it display pay now
when I click on pay now, nothing happens
Whe I check on my dashboard, nothing is received from me
I just downloaded the code from your page and I am trying to make it work
I did a lot of work before like installing scoop, node.js, npm ....
I am not sure if I installed stripe-java-25.10.0.jar the right way
So have you started both the front-end and back-end server?
Front-end I guess you have since you have the button
But are you able to start the java server?
Based on Cannot run on older versions of Java than Java 11. it sounds like you're using an older version of java, so that might be the problem
clairep_java-error
Updated java and java libs
long message in output the 3 last lines are
Language Client: Starting
Language Client: Ready
How do I start the java server
in my terminal
cd server
cd : Cannot find path 'B:\EXPO\website\stripeWithSupport\customFlowPayment\server' because it does not exist.
At line:1 char:1
- cd server
-
+ CategoryInfo : ObjectNotFound: (B:\EXPO\website...wPayment\server:String) [Set-Location], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
@sudden zodiac depends a lot on your own set up here. We can't really teach you how to use java/start a java server here.
Okay I check online and I come back
Could you please keep the thread open
I'll keep it open for a while but we close threads quickly as we help a lot of people in parallel. If it's closed though you can start a new thread by asking a new question and providing a lot of details!
so I started the server I think using command java -cp target/sample-jar-with-dependencies.jar com.stripe.sample.Server
answer
[Thread-0] INFO org.eclipse.jetty.server.session - DefaultSessionIdManager workerName=node0
[Thread-0] INFO org.eclipse.jetty.server.session - No SessionScavenger set, using defaults
[Thread-0] INFO org.eclipse.jetty.server.session - node0 Scavenging every 600000ms
[Thread-0] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@748db9cb{HTTP/1.1, (http/1.1)}{0.0.0.0:4242}
[Thread-0] INFO org.eclipse.jetty.server.Server - Started @548ms
@sudden zodiac I can help you with Stripe specific question but I can't really teach you java development or read your own specific logs unfortunately
nothing is happening when I click on the pay button on the public/checkout.html from your tutorial
I am not asking you to teach me java but to help me torun this tutorial
Have you ever done Java development before? Are you familiar with how to make a request from the client-side to your Java server? How to add logs, read the logs of your server, understand the exact port you are running on, etc?
I am running on port 5500
Maybe I should go to go cardless instead?
why do you think you run on port 5500? You have [Thread-0] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@748db9cb{HTTP/1.1, (http/1.1)}{0.0.0.0:4242} that says port 4242 instead
what does "go cardless" mean to you?
an alternative to stripe
if I have started the server, it means I should not be far to make it work as I just downloaded your code
Ah gotcha. It's totally fine to use GoCardless if you prefer yes. I assume they'll have the exact same kind of developer set up steps for you to go through really
the problem right now is I don't really know how to help you. You're saying "it doesn't work" but I am not sitting next to you, pairing with you. So I need you to ask clear/detailed questions about what you are doing and trying so I can help you
following this tutorial until it works
https://docs.stripe.com/payments/quickstart?locale=en-GB
When I click on the button, nothing happens it stays where it is
That's why I was trying to open the server
now that the server is open, it still stays on this page
Do you know how to write Javascript code?
It is searching something I would expect it to display a payment interface
Yes I know java code
Java and Javascript are completely different languages though. Do you know how to write Javascript code (what runs in your browser client-side)?
Is there anything I should add in your tutorial to make it run?
Please reply to my question first so I can help you
I have already a basket and an invoice form filled with java using option
I am trying to help you. You are lost right now, which is normal, and to guide you I need to understand what you know and don't know. Please take a step back, ignore your code for a sec and clarify if you know how to write Javascript and debug it as the developer
yes
I am going through your codeStep one
Create a payment intent :calculateOrderAmount
I see I will try to find out where the server stops.
What options did you pick on https://docs.stripe.com/payments/quickstart?locale=en-GB exactly? There are multiple at the top.
okay so I downloaded the zip and I followed the instructiosn in the readme and it worked immediately for me.
So the problem right now is in the client-side code, it's not rendering our payment form at all so there's an issue client-side
If you look in checkout.js do you see an API key properly set at the top of the file?
B:\EXPO\website\stripeWithSupport\customFlowPayment\src\main\java\com\stripe\sample\Server.java uses or overrides a deprecated API that is marked for removal.
It might come from the problems I had before
Error: Could not find or load main class ${packageClassName}
it's possible
The next step would be to add logs to both parts of the code to figure out what is and isn't running
skip non existing resourceDirectory B:\EXPO\website\stripeWithSupport\customFlowPayment\src\main\resources
Sorry none of this makes any sense to me unfortunately and seems unrelated
I looked and I have that exact same log so you can ignore
It has gone one step futher it displays http://127.0.0.1:5500/public/checkout.html and says Something went wrong!!!
I come back a bit later