Your Stripe Payment Link doesn't deliver anything. Here are the 40 lines that do.
Description and use
A Python script polls Stripe for completed Payment Link sessions and emails the digital product, removing the need for webhooks or third‑party services.
Problem
Stripe Payment Links only send a receipt; delivering a digital product requires additional steps, often involving costly platforms, webhooks, or automation subscriptions.
Outcome
The script delivers digital products via email after polling Stripe, avoiding webhooks, platform fees, and server maintenance.
Workflow
- 1. Store Stripe API key, payment link ID, file path, and SMTP credentials in a config file.
- 2. Run
plinkpost checkto validate key, link, file, and SMTP login. - 3. Execute
plinkpost listto view paid sessions and delivery status. - 4. Run
plinkpost onceto deliver all unpaid sessions immediately. - 5. Use
plinkpost watchto poll every POLL_SECONDS and auto‑deliver new purchases. - 6. Optionally use
--dry-runto simulate without sending emails. - 7. Monitor logs; buyer emails are masked to protect privacy.
Evidence
The core is one API call: ...
Everything above is in a single file called plinkpost.
- Record date: 2026-09-22T06:45:50.565Z