#RicoSwann
1 messages · Page 1 of 1 (latest)
The shot above is from the docs but this call does not work in the .Net SDK.
Looking in to this. I'm not even seeing that class defined with my install. That call should definitely have the ability to take both arguments. Checking in to what may be happening here.
OK thanks!
Hi there. Looks like the method to retrieve a customer's payment method is actually on the CustomerService: https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Services/Customers/CustomerService.cs
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - stripe-dotnet/CustomerService.cs at master · stripe/stripe-dotnet
The sample code you're looking at is incorrect unfortunately, so we'll report that
No problem. Sorry for this inconvenience
Cool. Let's hope that works
Actually looks like someone caught this before we reported it haha. The sample is updated: https://stripe.com/docs/api/payment_methods/customer?lang=dotnet
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK, good to know. Unfortunatly i'm still running into an issue. I have the stripe customer Id, but when I query it says that the customer is not found.
Gotcha. Is this a standard account?
Those errors usually occur if customer exists on the standard account then you query the platform's customers or vice versa
IT is a Custom account
Ok. Can you share the request id of this failing request? Also the customer id?
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.
The customer exists on the platform account, and AFAIK, that's what I'm querying. Unless I'm doing some thing wrong.
THe customer ID is: cus_N6SBPf3R5H8qWQ
Gotcha thanks. And can you also share that request id?
Ah. That makes me think you're accidentally issuing it on the connect account (ie looking for the payment method and customer on the connect account). Are you passing this header? https://stripe.com/docs/connect/authentication#stripe-account-header
No, i'm not passing in the stripe account header.
I also don't see the request in the API logs for the connect account.
Ok double check the api key that you're using then
Make sure it matches the one on the dashboard for your platform
OK, will do
And make sure it's the one for the same environment (live or test) that the customer exists in