#mike-j_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1249981541182996501
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Your URL is GET /v1/customers/cus_PrsH8P7mKzBJ0y/payment_methods/pm_1PQOZWJk75hPCxYyNAMh2twY which doesn't look like a valid URL
You want to either get a Customer, or get a PaymentMethod
Is it not this one? https://docs.stripe.com/api/payment_methods
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thought I was going crazy then ๐
Wait but pm_1PQOZWJk75hPCxYyNAMh2twY is not belonged to the customer cus_PrsH8P7mKzBJ0y
Oooooooh, odd. I checked the ids but maybe not very well.
Um, it is when I look for it
I get pm_1PQOZWJk75hPCxYyNAMh2twY attached to customer Aaron Cook, with id cus_PrsH8P7mKzBJ0y
Umm weird thing that I don't see it is attached. If you do a https://docs.stripe.com/api/payment_methods/customer_list API do you see that PM?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Did this change from a specific timeframe? For every PaymentIntent?
It was working yesterday. I have been making unrelated code changes, then came to test it this morning and it stopped working. Why would it give a 404 though - that's endpoint not found? Not that there's a problem with url contents. (Normally)
I see. Could you try the Listing PM API above? This Customer has too many card attached to him which is difficult to debug
Can you try again with a clean new Customer too?
Okie, could you provide another request from yesterday, which was working for you? If you can find a customer has not too many PMs it would be great
We want to compare
Sorry - due to lazyness, I've only been using the one for weeks
I'll have a look at yesterdays logs
Ok, I think that was the last one I made that worked: req_7tJfkDktD2ZWmV
Ohhh, that's different - when I search for pm today I don't get the customer listed here.
But if I look in the pm itself, the customer is listed.
Stashing my code and going back to yesterday...
You needed setup_future_usage: "off_session",
That will tell Stripe to automatically attach the payment method to the customer
Huh. I hadn't thought I'd changed that. Ok, I'll check that. I've also re-run code from yesterday's state and that's worked, so I'll double check how I'm creating the payment intent. Thanks!