#el_quick

1 messages · Page 1 of 1 (latest)

arctic compassBOT
spare siren
#

Hi there!

#

In which case would you receive a invoice.payment_failed when the customer is on session? When you create a brand new subscription?

maiden salmon
#

Yes! with 3ds for example

spare siren
maiden salmon
#

trying create a new brand subscription by using a card which requires 3ds authentication, the billing_reason has a subscription_update value

#

So, I'll get the same value when the invoice payment fails and the user is off line

spare siren
#

If it's a brand new subscription it should be subscription_create

maiden salmon
#

It would be ok if I expand the charge and check for its failure_code ?

#

I just realized that subscription comes null, since I need to send the email just when a subscription renewal fails, I think I can send the email only when the subscription is not null

spare siren
#

Yes, that could work!

maiden salmon
#

Thank you! anyhow, is not weird that the billing_reason is coming with a subscription_update value?

spare siren
#

Can you share the invoice ID (in_xxx)?

maiden salmon
#

Sure: in_1MdahBKC4Ot1qhBTej9SUHrr

chrome stump
#

are you calling the API with an old version forced?

maiden salmon
#

Yes, I'm using the 2017-08-15 version

chrome stump
#

that's why then

maiden salmon
#

Got it! I will look for another way to resolve it for now. While I get the time to switch the api version

#

Btw, in the url that you sent me (I only add the connected account id), I continue seeing subscription_update

chrome stump
#

it probably renders differently when you're looking at it as the platform(as your platform has the older version)