Moodle Plugins directory: Restriction by Stripe payment | Moodle.org
Restriction by Stripe payment
Stripe Payment Availability Condition for Moodle
This plugin adds a new availability restriction allowing teachers to lock Moodle activities or resources behind a Stripe payment.
Students must complete a one-time payment via Stripe Checkout before accessing the restricted activity. Once the payment is confirmed via Stripe webhook, access is immediately granted.
The payment button appears directly on the course page for students who have not yet paid. Teachers and administrators always bypass the restriction.
Key features:
• Restrict any Moodle activity (assignments, quizzes, pages, files, etc.) behind a Stripe payment
• Stripe Checkout hosted payment page — no card data touches the Moodle server
• Webhook-based verification for secure payment confirmation
• Multi-currency support including zero-decimal currencies (JPY, KRW)
• Inline payment button displayed directly on the course page
• Transaction history and revenue summary for administrators
• Per-activity payment reports for teachers
• Automatic cleanup of expired pending payments via scheduled task
The plugin bundles the official Stripe PHP SDK and does not require Composer on the Moodle server.
Comments