#yashu_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1222433198706004008
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- yashu_api, 4 days ago, 7 messages
Here you are https://github.com/stripe/stripe-mock
Sure we are discussing on your question here
Iâm getting this error message trying to test payment with card integration in test mode â sending credit card numbers directly to the strip API is generally unsafe â
I was trying to connect to local stripe-mock server using npm stripe pkg
https://www.npmjs.com/package/stripe
export const stripeMock = new Stripe("sk_test_123", {
host: "localhost:12111",
apiVersion: '2023-10-16',
telemetry: false,
});
but it doesn't seems to work.
I get this error
Error: An error occurred with our connection to Stripe. Request was retried 1 times.
@wide night looks like you're in the wrong place, this thread is for someone else's question.
- If you have your own thread please chat there.
- If you have a question or a followup to a closed thread use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 to get help (we don't reopen closed threads).
Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.
@sterile patrol have you boosted up stripe-mock as a server? Did you try firing some curl to it?
have you boosted up stripe-mock as a server? Did you try firing some curl to it?
Yes, I have started a stripe-mock server using docker and even tested a GET api call.
after this anything outputed in stripe-mock console?
Yup, 200 status
HTTP/1.1 200 OK
Content-Type: application/json
Request-Id: req_123
Stripe-Mock-Version: 0.183.0
Date: Wed, 27 Mar 2024 07:01:32 GMT
Transfer-Encoding: chunked
Which URL path is it?
I tested this command in the terminal
curl -i http://localhost:12111/v1/charges -H "Authorization: Bearer sk_test_123"
the stripe-mock worked in CLI.
But I got that error while using in the code using nodejs