Programmatic access to the number of invoice payment attempts
When Stigg is integrated with Stripe it's now possible to determine the number of attempts that were made to collect payment for a generated invoice.
When subscriptions to paid plans are created in Stigg, the number of payment collection attempts is is immediately 1. This number can increase when payment fails and Stripe is configured to automatically retry failed payments.
Vendors can leverage this field to customer-facing notifications, for example using an in-app banner.
This information is accessible via the response of the getActiveSubscriptions and getSubscription endpoints as well as the subscription.updated webhook event under the latestInvoice.attemptCount property.
The new property is available via the Stigg API as well as in the Stigg SDK for Node.js v3.62.0, Stigg Python, Ruby, Go, Java and C# v2.307.0, Stigg JavaScript SDK v3.36.0, Stigg React SDK v5.30.0, Stigg Vue.js SDK v4.15.0 and Stigg Embed SDK v5.15 or later.