We want our web site to detect when a user is in the state of having their monthly charge declined, and to display a warning to the user.
What in the XML will help us detect this state?
I am guessing:
Find the second
<invoice>record undersubscriptions.subscription[0].invoices.
(The first<invoice>seems to show the current billing period, which appears to start even if the previous one has not billed successfully).Check this invoice's
<paidTransactionId>field. If there is something there, consider it paid. If empty, consider it unpaid.
But this feels cargo-cultish and maybe not the best way. What do you recommend?
Thank you.

#1 Posted by Marc Guyer Support staff on 03 Oct, 2010 08:04 AM
That is exactly correct.
Marcela Poffald closed this discussion on 11 Apr, 2018 06:13 PM.