Home โ€บ Modules โ€บ phyto_subscription

phyto_subscription

Recurring mystery box and replenishment subscriptions via Cashfree โ€” plan builder, subscriber management, and admin panel.

Commerce v1.0 PrestaShop 8 Browse Source on GitHub โ†—
modules/phyto_subscription/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

Lets customers subscribe to regular deliveries โ€” mystery plant boxes, monthly replenishment orders, or curated collections. Create subscription plans with name, price, and frequency. Recurring payments are handled via Cashfree Subscriptions API.

Features

  • Create unlimited subscription plans (name, price, frequency, description)
  • Customer-facing plans listing page with subscribe button (login required)
  • Cashfree Subscriptions API integration for recurring billing
  • Admin subscriber management: view, pause, cancel subscriptions
  • Webhook handler for Cashfree payment events (success, failure, cancel)
  • Subscriber email notifications on successful charge and failure

Plan Types

FrequencyExample
Monthly“Monthly Mystery Box”
Bi-monthly“Rare Plant Replenishment”
Quarterly“Seasonal Collector Box”

Source Layout

PathPurpose
phyto_subscription.phpModule entry + hooks
classes/PhytoSubscriptionPlan.phpORM for plan definitions
classes/PhytoSubscriber.phpORM for subscriber records
classes/CashfreeClient.phpCashfree API wrapper
controllers/front/plans.phpPublic plans listing page
controllers/front/webhook.phpCashfree webhook endpoint
controllers/admin/AdminPhytoSubscriptionController.phpAdmin panel
sql/install.sqlCreates plans + subscriber tables
View Full Source โ†— โ† Back to All Modules