#kirito
1 messages · Page 1 of 1 (latest)
👋 happy to help
would you mind sharing the request ID? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
sub_1MtRJyFeR0PUZyO7eM6DhVTI
I got error while trying to post to https://api.stripe.com/v1/payment_intents/pi_3MtRJyFeR0PUZyO70uau9ol6/confirm
Hello ?
@surreal raft discord is a bit busy, I'm looking into your issue, sorry but you need to be patient
I understand thank you !
would you mind sharing the request ID where the PI is failing?
here's how you can get the request ID https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
is it not here in this link that I got as response: https://api.stripe.com/v1/payment_intents/pi_3MtRJyFeR0PUZyO70uau9ol6/confirm ?
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?
404 with the link I sent
I dont receive any event on my webhook
or event to say that I payed for the subscription
or attempt and failed
how are you calling this link https://api.stripe.com/v1/payment_intents/pi_3MtRJyFeR0PUZyO70uau9ol6/confirm ?
I'm using confirmCardPayment to pay for it
stripe.confirmCardPayment(clientSecret, { payment_method: { ...payment_method, billing_details }})
what is the error you're getting? 404 not found?
I get that at first but when I tried again I get nothing
would you mind sharing a screenshot?
Also I don't receive anything in my webhooks endpoints
I don't get the error anymore
even the one that say that customer created or subscription created
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
but here is the errors that I receved when I tried to pay:
and here is the list of events I received :
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
I don’t haves something likes that
please check this https://stripe.com/docs/ips
And even if it wasn’t true wouldn’t that also mean that subscription and customer won’t be created ?
As you seen here all was fine until we arrived at the payment
are you using the publishable key?
Yes
would you mind sharing the code you're using to initialize stripe?
export function getStripe() {
stripePromise ||= loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY)
return stripePromise
}
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
Ok
Could you please summarise the most recent issue/question?
After I create a customer and subscription attached to that customer and I try to pay it using this method
I got an error in the front
.
And also no log in the server that indicates a payment attempt.
"@stripe/stripe-js": "^1.52.0",
Do you see any error in the request?
No just 404
Can you call other Stripe endpoints?
like what ?
Are you able to call Stripe from your backend? Like create a Customer: https://stripe.com/docs/api/customers/create
yes
And Stripe.js? Like retrieve a PaymentIntent? https://stripe.com/docs/js/payment_intents/retrieve_payment_intent
as you can see except the payment all work good
all of this operation started from the backend the problem is that it work on test mode
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?
Can you do this call on your frontend?
it ONLY works in Test mode
Does any other call fail in Live mode? Like Retrieve a PI?
I don't have anything