Your Stripe Payment Link doesn't deliver anything. Here are the 40 lines that do.
Описание и применение
Скрипт на Python автоматически проверяет завершенные платежи по Stripe Payment Link и отправляет цифровой товар по электронной почте, устраняя необходимость вебхуков и сторонних платформ.
Задача
Stripe Payment Links only send a receipt; delivering a digital product requires additional steps, often involving costly platforms, webhooks, or automation subscriptions.
Результат
The script delivers digital products via email after polling Stripe, avoiding webhooks, platform fees, and server maintenance.
Рабочий процесс
- 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.
Доказательства
The core is one API call: ...
Everything above is in a single file called plinkpost.
- Дата записи: 2026-09-22T06:45:50.565Z