#Vinny GG

1 messages ยท Page 1 of 1 (latest)

wind surgeBOT
sudden garden
#

hi! what's the question exactly?

bronze river
#

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

sudden garden
#

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

bronze river
#

in_1MR9iNJewuqlb8aOIxJZOmwu

sudden garden
#

it failed because the customer does not have a default payment method set.

bronze river
#

Can I see this error on the platform?

sudden garden
#

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

bronze river
#

hmmm

#

to solve this problem would I have to send these fields?

sudden garden
#

yes

#

what re you currently using in terms of code/products for accepting the card details from the customer?

bronze river
#

sorry I did not understand

#

Are the fields you mentioned mentioned in the customer's registration or in the subscription?

bronze river
#

s it possible to perform this action on the platform?

sudden garden
#

what is "the platform"?

bronze river
#

dashboard

sudden garden
#

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

bronze river
#

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?

short bone
#

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.

bronze river
#

ok thanks for the advice

#

I have identified that the subscription does not have the default payment method

short bone
#

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.

bronze river
#

How can I get the id of the customer's payment method?

short bone
#

Deleting as that image seemed like it might contain PII.

The ID was there in the screenshot though.