Restriction by Stripe payment

Availability restriction ::: availability_stripepayment
Maintained by Andrei Toma
Restricts access to Moodle activities or resources behind a Stripe payment. Students must complete a one-time Stripe Checkout payment before gaining access, while teachers and administrators automatically bypass the restriction.
Latest release:
1 sites
20 downloads
Current versions available: 1

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.

Potential privacy issues

This plugin sends payment information to Stripe in order to process payments. No card data is stored on the Moodle server. Student email address and purchase information may be transmitted to Stripe for payment processing.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6
Screenshot #7

Contributors

Andrei Toma (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments

Show comments
Please login to post comments