Community Discussions
Best practice for usage-credit purchases and webhook idempotency in an AI video SaaS?
We are evaluating Fincra for https://www.flowaivideo.org/, an AI video creation service where customers would purchase usage credits that are consumed by generation jobs.
Before implementing the payment flow, we would appreciate guidance on the recommended integration pattern:
1. Should the application grant credits only after receiving a verified payment webhook, rather than relying on the checkout response?
2. Which Fincra payment or event identifier should be stored as the idempotency key so that webhook retries cannot add the same credits twice?
3. For refunds or chargebacks, is there a recommended way to map the reversal to the original transaction and adjust unused credits safely?
4. Does the test environment provide a way to simulate delayed and duplicate webhook deliveries?
We are not currently claiming a Fincra integration; we are trying to design the workflow correctly before implementation. Links to relevant API documentation or an example architecture would be appreciated.

