#mytras8706

1 messages · Page 1 of 1 (latest)

coral doveBOT
brazen marsh
#

You don't need that parameter, because charge automatically will charge... automatically

#

meaning no days to wait

solemn notch
#

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*

brazen marsh
#

For 1 hour, correct?

solemn notch
#

for days

brazen marsh
#

That's expected and nonconfigurable

#

for days?

solemn notch
#

yes

brazen marsh
#

Did it attempt to charge/

solemn notch
#

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'?

brazen marsh
#

I run the call "Find customer" that parameter is empty,
Can you provide this call request id?

solemn notch
#

where can I get that?

#

in stripe

brazen marsh
solemn notch
#

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?

brazen marsh
#

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

solemn notch
#

As you can see from the picture it has a pm

brazen marsh
#

That's the default_source

solemn notch
#

what do you mean with default_source?

#

isnt payment method id starting with pm_?default source is src_

brazen marsh
#

Yes, if you expand that card on Dashboard, you will see src_xxx

solemn notch
#

Ok, but thab why some are ubder src_ and some are under pm_?

brazen marsh
#

It depends on how the Customers was created and attached a source/payment method

solemn notch
#

So in my filter i can use either src_xxx or pm_xxx to check if the customer has a payment method on record?

brazen marsh
#

Yes, correct!

solemn notch
#

Ok thats clear now

#

Going back to invoices that have charge automatically, do I need to attest them to charge the customer?

brazen marsh
#

Hmm what do you mean by attest? You can just leave it and let the Invoice attempt to charge

solemn notch
#

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?

brazen marsh
#

That we want to look at the specific Invoice Id to see why. Please provide the Invoice Id

solemn notch
#

Unfortunately i dont have any to be checked atm

exotic rune
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

solemn notch
#

Sure

exotic rune
#

I would need an example Invoice ID in order to investigate. Would you be able to find one?

solemn notch
#

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?

exotic rune
#

So are you creating Invoices via the Dashboard?

solemn notch
#

no

#

I am creating the invoices via API

exotic rune
exotic rune
solemn notch
#

the thing is I dont know which one got stuck in draft for days

exotic rune
#

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.

solemn notch
#

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?

exotic rune
#

No, it's true by default.

solemn notch
#

do I need to attest the invoices to be charged automatically?

exotic rune
solemn notch
#

but this is create a subscription, I am talking about 1 time invoices

exotic rune
solemn notch
#

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

exotic rune
#

I thought we are talking about Subscription, sorry for confusion. Yes, that's correct.

solemn notch
#

ok thank you

dry citrus
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!