Repository navigation
Stripe
The ESN Membership Manager uses Stripe to generate payment links and process payments for ESNcards, including automatic price differentiation for ESNers (ESN Volunteers and Alumni).
- A verified Stripe Account.
- Access to the Developers section in the Stripe Dashboard.
-
Omnia Stripe Configuration: Your Stripe Secret Key (
sk_live_...orsk_test_...) must first be configured in Omnia Settings.
Caution
Never share your Secret Key. Ensure you use Test keys for development/staging and Live keys for production.
The module uses Stripe webhooks to confirm successful payments, automatically assign an ESNcard number from inventory (or place the application in the backlog if stock is empty), sync to Weeztix/Google Sheets, and email the member.
- Log in to your Stripe Dashboard.
- Navigate to Developers > Webhooks.
- Click Add endpoint.
-
Endpoint URL:
https://your-domain.com/stripe/webhook-
Note: Replace
your-domain.comwith your actual site domain.
-
Note: Replace
-
Events to send: Select
checkout.session.completed. - Click Add endpoint.
- Reveal the Signing secret (starts with
whsec_...). - Copy this secret to the module configuration (
/admin/config/system/esn-membership-manager):-
Field:
Stripe Webhook Secret
-
Field:
You need to create products in Stripe for both standard members and ESNers (ESN Volunteer and ESN Alumnus). Optional
processing fee products can also be configured for each tier.
- Go to Products > Add Product.
-
Name:
ESNcard(or similar). - Pricing Model: Standard pricing (One-time).
- Price: Enter the standard cost of the card (e.g., €15.00).
- Save the product and copy the Price ID (starts with
price_...).-
Field:
Stripe Price ID for ESNcard
-
Field:
To cover online payment gateway expenses, you can add a separate processing fee line item:
- Go to Products > Add Product.
-
Name:
Processing Fee. - Pricing Model: Standard pricing (One-time).
- Price: Enter the fee amount (e.g., €0.50).
- Save the product and copy the Price ID.
-
Field:
Stripe Price ID for Processing Fee
-
Field:
When an approved applicant has a Mobility Status of ESN Volunteer or ESN Alumnus, the module automatically generates a payment link using the ESNer Price IDs.
- Create a product (or a second price on your ESNcard product) with the discounted ESNer price.
- Tip: If your section does not offer a discount to ESNers, you can reuse the standard ESNcard Price ID here.
- Copy the Price ID.
-
Field:
Stripe Price ID for ESNer ESNcard
-
Field:
- Create a processing fee price for ESNers (or leave blank to fall back to the standard processing fee if configured).
- Copy the Price ID.
-
Field:
Stripe Price ID for ESNer Processing Fee
-
Field:
- When an officer approves an ESNcard application, the module creates a Stripe Payment Link containing the appropriate
ESNcard (and optional Processing Fee) line items with
application_idstored in metadata. - The payment link is emailed to the applicant and displayed on their Member Dashboard.
- When payment succeeds, Stripe fires
checkout.session.completedto/stripe/webhook. - The module marks the application as
Paid, assigns the next available ESNcard number (orBACKLOGGEDif inventory is depleted), disables the payment link if deleted later, and triggers downstream integrations (Weeztix, Google Sheets, Digital Wallets, and assignment email).