From the source

How it works
- The historical file calls stripe.invoices.create with collection_method set to send_invoice. Creating is a write; it does not itself establish that an invoice was sent.
- The file does not expose auto_advance or implement human approval. It is not marked idempotent, so safe retries cannot be assumed. A wrapper must add draft control, deduplication and approval.
- Stripe documentation supports auto_advance=false for editable drafts until finalization. Signature-verified invoice.paid handling must distinguish Stripe collection from paid_out_of_band.
- The old agent-toolkit path redirects to stripe/ai. The pinned code is historical, not proof of the current supported integration or production readiness.
Workflow guide
Prepare an isolated test-mode plan. Validate restricted access and the approved customer, line items, tax treatment, currency and due date.
After explicit implementation approval, add a wrapper that sets auto_advance=false for editable drafts. The historical tool alone does not expose this setting.
Deduplicate retry requests. Record each test draft identifier and contents in an audit record for human review.
Require approval before an authorized service or person finalizes and sends. Test that unapproved drafts cannot be sent.
Verify webhook signatures before processing events. Reconcile invoice.paid events with records without treating paid_out_of_band as proof of Stripe-collected payment.
Compare the fixed test cases with the current tool baseline. Check wrong-customer and duplicate handling, zero unapproved sends and complete approval links.