#mytras8706
1 messages · Page 1 of 1 (latest)
You don't need that parameter, because charge automatically will charge... automatically
meaning no days to wait
do I need a specific parameter to push the payment?because in the past even with charge automatically in the api call of the invoice creation, my invoices were getting stuck on dreaft
draft*
For 1 hour, correct?
for days
yes
Did it attempt to charge/
no
also a further question
where exactly can I get the information if the customer has or not a payment method registered in Stripe?
Because for example, this customer cus_OJ1W1q9Y3M925P, I search the customer using the API call and I use the parameter "default_payment_method" to check if the customer has or not a paymente method on record.
In the customer example that I sent you, it has a default payment record but when I run the call "Find customer" that parameter is empty, why?
the call back is really confusing
This is from the dashboard in stripe
This is from the automation
are you there'?
I run the call "Find customer" that parameter is empty,
Can you provide this call request id?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Let me get that for you
in the logs I only have invoices calls done today
let me try if I can get a log using postman
In the page that you send me I get no logs when running the call to retrieve a customer
I got one
req_lkD5deTfb6Ml64
this is the request Id
Have you checked the id?
Checking...
hmm that's a GET request and I can't see its response. But this Customer doesn't have default_payment_method
It has default_source instead
As you can see from the picture it has a pm
That's the default_source
what do you mean with default_source?
isnt payment method id starting with pm_?default source is src_
Yes, if you expand that card on Dashboard, you will see src_xxx
Ok, but thab why some are ubder src_ and some are under pm_?
It depends on how the Customers was created and attached a source/payment method
So in my filter i can use either src_xxx or pm_xxx to check if the customer has a payment method on record?
Yes, correct!
Ok thats clear now
Going back to invoices that have charge automatically, do I need to attest them to charge the customer?
Hmm what do you mean by attest? You can just leave it and let the Invoice attempt to charge
As I mentioned some invoice got stuck in draft even tho they had charge automatically setup, do I need to add the parameter to automatically advance?
That we want to look at the specific Invoice Id to see why. Please provide the Invoice Id
Unfortunately i dont have any to be checked atm
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Sure
I would need an example Invoice ID in order to investigate. Would you be able to find one?
unfortunately no
since we realised that we started charging the customer from the dashboard
I was wondering there is a parameter that I am not using in my automation:
auto_advance
I assume that if I set that up to auto_advance=True than it will automatically charge the customer, right?
So are you creating Invoices via the Dashboard?
It depends on many parameters, that's why I need to see an example.
You should still see them in your Dashboard: https://dashboard.stripe.com/invoices
the thing is I dont know which one got stuck in draft for days
I would suggest keeping an eye on it and seeing if this happens again. Then you can come back to us with an exact Invoice ID. Otherwise it's very hard to judge, since there's multiple possible configurations.
ok
but
what is the usual configuration
that would usually work
when creating an invoice via API that has chargin_method= charge automatically, do I need to have the paramenter auto_advance=True?
No, it's true by default.
do I need to attest the invoices to be charged automatically?
No, it's also default: https://docs.stripe.com/api/subscriptions/create#create_subscription-collection_method
but this is create a subscription, I am talking about 1 time invoices
It's the same for Invoices: https://docs.stripe.com/api/invoices/create#create_invoice-collection_method
Unless you explicitly disable it, invoices you create in the Dashboard automatically finalize when they leave the draft state. Invoices you create with the API, however, won’t automatically finalize. You must turn on automatic collection by setting the auto_advance property on the invoice to true.
I have to set the parameter
I explicitly said that I am creating invoices via API, you said that i did not need to set the parameter to true
I thought we are talking about Subscription, sorry for confusion. Yes, that's correct.
ok thank you
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!