#kirito

1 messages · Page 1 of 1 (latest)

vale rivetBOT
wooden root
#

👋 happy to help

surreal raft
#

sub_1MtRJyFeR0PUZyO7eM6DhVTI

#

Hello ?

wooden root
#

@surreal raft discord is a bit busy, I'm looking into your issue, sorry but you need to be patient

surreal raft
#

I understand thank you !

wooden root
#

would you mind sharing the request ID where the PI is failing?

surreal raft
wooden root
#

this is an API link, I need the request ID generated in the response header to this call

#

what is the error you're getting?

surreal raft
#

404 with the link I sent

wooden root
#

because this is a POST and not a GET request

#

you're not using our SDKs?

surreal raft
#

I dont receive any event on my webhook

#

or event to say that I payed for the subscription

#

or attempt and failed

wooden root
surreal raft
#

I'm using confirmCardPayment to pay for it

#

stripe.confirmCardPayment(clientSecret, { payment_method: { ...payment_method, billing_details }})

wooden root
#

what is the error you're getting? 404 not found?

surreal raft
#

I get that at first but when I tried again I get nothing

wooden root
#

would you mind sharing a screenshot?

surreal raft
#

Also I don't receive anything in my webhooks endpoints

wooden root
#

you won't receive anything if the payment didn't get through

#

that's normal

surreal raft
surreal raft
#

I stopped getting them after updating the endpoint link from websiteUrl to websiteUrl/api/webhooks

#

sorry that was a mistake

#

it only wase because of the selected event

wooden root
#

ok

#

I'm happy you figured it out

surreal raft
#

but here is the errors that I receved when I tried to pay:

#

and here is the list of events I received :

wooden root
#

if the response is 404 then I think there's something (maybe a VPN or any other network issue) that is keeping you from reaching Stripe

surreal raft
#

I don’t haves something likes that

wooden root
surreal raft
#

And even if it wasn’t true wouldn’t that also mean that subscription and customer won’t be created ?

surreal raft
wooden root
#

are you using the publishable key?

surreal raft
#

Yes

wooden root
#

would you mind sharing the code you're using to initialize stripe?

surreal raft
#
export function getStripe() {
  stripePromise ||= loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY)

  return stripePromise
}
vale rivetBOT
vestal bone
#

Hi! I'm taking over my colleague. Please, give me a moment to catch up.

surreal raft
#

Ok

vestal bone
#

Could you please summarise the most recent issue/question?

surreal raft
surreal raft
surreal raft
#

And also no log in the server that indicates a payment attempt.

vestal bone
#

Thanks!

#

What version of Stripe.js are you using?

surreal raft
#

"@stripe/stripe-js": "^1.52.0",

vestal bone
surreal raft
#

No just 404

vestal bone
#

Can you call other Stripe endpoints?

surreal raft
#

like what ?

vestal bone
surreal raft
#

yes

vestal bone
surreal raft
#

all of this operation started from the backend the problem is that it work on test mode

vestal bone
#

the problem is that it work on test mode
Not sure what that means. It doesn't work in Test mode? Or it ONLY works in Test mode?

vestal bone
surreal raft
#

it ONLY works in Test mode

vestal bone
#

Does any other call fail in Live mode? Like Retrieve a PI?

vale rivetBOT
surreal raft
#

I don't have anything