#ben-syndica
1 messages ยท Page 1 of 1 (latest)
Hi ๐ my understanding is that happens when you're trying to use a Source to process a payment that isn't yet ready to be charged (hasn't had funds settle in it).
It looks like no funds are yet available in the default Source on that Customer object.
@sleek token src_1MgdOGITZzlUK3bSo33qKq6i doesn't seem to exist. Any idea why the error displays this id?
What do you mean that Source doesn't exist? It's the default_source set on the Customer object you're using.
Get source returns - {"code":"resource_missing","doc_url":"https://stripe.com/docs/error-codes/resource-missing","status":400,"message":"No such source: 'src_1Nf71r2eZvKYlo2ClHPbVjWD'","request_id":"req_vZ8MCBQkGOKtqe","type":"invalid_request_error"}
I think some legacy code added these sources that are not used. If I detach these sources, do you think create subscription will work afterwards? https://stripe.com/docs/api/sources/detach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm not sure where you're getting the Source ID in that request from, it doesn't match the one from your previous message.
No I don't. You're passing payment_behavior: error_if_incomplete when trying to create the Subscription. So I'm pretty sure you will have to provide a payment method when creating the Subscription, or have one stored as a default on the Customer object, or else you will continue to encounter an error.
@sleek token Can you send me the cus_ id for the customer? Thanks!
No I can't, but you can see it in the logs of the request returning the error:
https://dashboard.stripe.com/test/logs/req_pLx5xD5VYQIabx