#farzenith

1 messages · Page 1 of 1 (latest)

tribal latchBOT
tight skiff
#

Yes in that case it is the latest_charge.

#

In case there are multiple attempts you would have multiple charges inside a paymentintent,

proper furnace
#

But the latest one is always the successful one?

#

i.e. sends receipt?

tight skiff
#

If it finallay succeeded, yes

proper furnace
#

great, refunds don't change anything?

tight skiff
#

It wouldn't change the latest charge

proper furnace
#

Perfect. Another small question - if I use expand, I don't seem to get typescript types on the expanded fields. Is this a known issue?

tight skiff
#

Hmm what do you mean by typescript types? The object is purely a backend object

proper furnace
#

Your node lib has types included

tight skiff
#

ah I see what you mean

#

That could be tricky since latest_charge originally is a string, only if you expand it it will be an object

#

I will forward your feedback but it could be just not possible rn, sorry!

proper furnace
#

I've actually semi figured it out

#

Thanks for being my rubber duck hehe

#

But my feedback to the team is

#

the type of an expanded field should be able to be inferred if the expand array is passed