#mike-j_api

1 messages ยท Page 1 of 1 (latest)

tight impBOT
#

๐Ÿ‘‹ 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.

ember ore
#

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

modest marsh
ember ore
#

Oh wait, you are right

#

Hold on hmm

modest marsh
#

Thought I was going crazy then ๐Ÿ˜

ember ore
#

Wait but pm_1PQOZWJk75hPCxYyNAMh2twY is not belonged to the customer cus_PrsH8P7mKzBJ0y

modest marsh
#

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

ember ore
#

Did this change from a specific timeframe? For every PaymentIntent?

modest marsh
#

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)

ember ore
#

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?

modest marsh
#

Ok, let me try another customer

#

Same error: req_TVjvyEoq74p4DH

ember ore
#

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

modest marsh
#

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

ember ore
#

You needed setup_future_usage: "off_session",

#

That will tell Stripe to automatically attach the payment method to the customer

modest marsh
#

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!