#Vinny GG
1 messages ยท Page 1 of 1 (latest)
hi! what's the question exactly?
Is it possible to identify the reason for these failures?
it was only possible to make the payment when we made it manually and clicked to pay
yep, if you look into the Events section at the bottom of the page you can generally look at what events were triggered for invoice.paid and see what types of API requests caused those
you could also share the invoice ID in_xxxx with our support team for any queries
in_1MR9iNJewuqlb8aOIxJZOmwu
it failed because the customer does not have a default payment method set.
Can I see this error on the platform?
not really I think, but you can see in the API that the customer does not have invoice_settings[default_payment_method] set to a value, and the subscription does not have default_payment_method set either
yes
what re you currently using in terms of code/products for accepting the card details from the customer?
sorry I did not understand
Are the fields you mentioned mentioned in the customer's registration or in the subscription?
s it possible to perform this action on the platform?
what is "the platform"?
dashboard
I think so, there might be a "..." menu next to the payment method to do that
this is specifically a Discord channel for developer/coding questions so we mainly deal with the API, not the dashboard
ok, it was just a question. I'm going to look at the subscription that were created without this field and update them, that would be the recommendation, right?
Hi there ๐ my teammate needs to step away soon, so I'm taking a look. In order for Subscriptions to successfully charge automatically the Customer record must have a valid payment method and it must be set as a default payment method either on the Customer object or on the Subscription object, so that is recommended.
ok thanks for the advice
I have identified that the subscription does not have the default payment method
Is it only possible to update this field with this api?
https://stripe.com/docs/api/subscriptions/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That's the way I'm familiar with updating it, though I suspect it can likely be updated via the dashboard. However I'm not certain on that point. Since this forum is geared towards supporting developers with API integrations that is where most of our expertise is focused, so we aren't too familiar with the functionality available in the Stripe dashboard.
How can I get the id of the customer's payment method?
Deleting as that image seemed like it might contain PII.
The ID was there in the screenshot though.