#yashu_code

1 messages ¡ Page 1 of 1 (latest)

magic sirenBOT
#

👋 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.

nova muralBOT
#

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.

wide night
#

Hello

dense needle
wide night
#

I need #help with integration

dense needle
#

Sure we are discussing on your question here

wide night
#

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 “

sterile patrol
#

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.

magic sirenBOT
#

@wide night looks like you're in the wrong place, this thread is for someone else's question.

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.

dense needle
#

@sterile patrol have you boosted up stripe-mock as a server? Did you try firing some curl to it?

sterile patrol
#

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.

dense needle
sterile patrol
dense needle
#

Which URL path is it?

sterile patrol
#

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

dense needle
#

Okie I think this is not straighforward but I found the example on Stripe Node of how to use stripe-mock