Skip to content
  • Our Product
    • Namazu Elements
      • What is Elements?
      • Why open source?
      • Docs
        • Namazu Elements in Five Minutes or Less
        • RESTful APIs Library
        • Security Model
        • Accessing the Web UI (CMS)

    Our Product

    A logomark with three layered rhombuses adorning the lettermark that says Elements in bold all-caps sans-serif letters.
    • What is Namazu Elements? Discover our easy-to-use backend network solution built for online games. Rapidly enables full-scale multiplayer games or online solo adventures.
    • Why open source? Is there a truly open source server backend for connected games? There is now. Download and run a local copy of Namazu Elements and try it for yourself.
    Download Namazu Elements

    Get started

    • Quick start Read our Elements 5-minute quick start guide
    • Documentation Read our developer docs for learning more about Elements
    • RESTful APIs A full list of core API specs for working with the Elements framework
    • Security An overview of the server-authoritative security model of Elements
    • Accessing the CMS Manage your game with ease via the Namazu Elements CMS.

    Co-development Reimagined

    • Best real-time game backends in 2026 If you're researching an alternative to your current backend solution, we've prepared a report of all of the backend solutions on the market in 2026 and how Namazu Elements compares.
      Co-dev

    Recent Posts

    • The watercolor-styled Namazu Studios logo over a giant namazu lurking in the depth
      Namazu Studios Featured in San Diego Business Journal
      22 Sep 2025 Press
    • Namazu Elements 3.1 Released – Service Layer Fixes, Secure APIs, and Steam Bug Fix
      22 Apr 2025 Release Notes
  • Case Studies
  • About Us
  • News
  • Services
  • Book a call
namazu-studios-logo
Book a call
Popular Search Roblox

Getting Started

  • Namazu Elements in Five Minutes or Less
  • Overview
  • Accessing the Web UI (CMS)
  • CMS Feature Overview

Fundamentals

  • Why You Need a Server (and What “Authoritative” Means)
  • Elements as a Game Runtime
  • Where Your Authoritative Code Runs
  • Lifecycles and Flows

General Concepts

  • Custom Elements
  • Data Models
  • Security Model
  • N-Tier Architecture

Namazu Elements Core Features

  • Email Service
  • Applications
  • Sessions
  • Users and Profiles
  • Digital Goods
  • Progress and Missions
  • Progress and Missions (3.4+)
  • Leaderboards
  • Matchmaking – Comprehensive Guide
  • Friends
  • Followers
  • Product Bundles and SKUs
  • Item Ledger
  • Receipts
  • Reward Issuances
  • Save Data
  • Metadata
  • Metadata (3.4+)
  • Queries
  • User Authentication / Sign In
    • What is a User?
    • Email Verification
    • User Authentication in Elements
    • Account Linking
    • Setting Up Twitch OIDC Login (Backend)
    • OIDC Login for Thick Clients (Browser Redirect Flow)
    • Auth Schemes
      • Auth Schemes
      • OAuth2
      • OIDC
  • Features
    • Web3
      • Wallets
      • Vaults
      • Omni Chain Support
      • Smart Contracts
        • Smart Contracts
  • Queries
    • Advanced Operators
    • Object Graph Navigation
    • Boolean Queries
    • Base Query Syntax
  • Advanced Operators
    • .name
    • .ref

Your Game Code - Adding Custom Elements

  • Custom Code Overview
  • Windows Setup
  • Mac OS Setup
  • Ubuntu Linux Setup
  • Element Anatomy: A Technical Deep Dive
  • Introduction to Guice and Jakarta in Elements
  • Structuring your Element
  • Events
  • Packaging an Element with Maven
  • Deploying an Element
  • Preparing for code generation
  • Properties
  • Websockets
  • RESTful APIs
  • Direct MongoDB Access (3.5+)
  • Building the Example Element: A Complete Walkthrough
  • Building the Kotlin Example Element: A Complete Walkthrough

Configuration

  • Configuring External URLs for Deployment
  • Matchmaking – Comprehensive Guide
  • Direct Database Access and Batch Configuration
  • Connecting Namazu Elements to a TLS-Enabled MongoDB Replica Set
  • Batch Samples
    • Mission Upload Bash Script Sample
    • Item Upload Bash Script Sample

RESTful APIs

  • Importing into Postman
  • RESTful APIs Library
  • Swagger and Swagger UI

Add-Ons

  • Crossplay
    • Crossfire Client Libraries (JVM & Browser)
    • Crossfire Protocol Reference
    • Crossfire: Custom Matchmaking Algorithms
    • Namazu Crossfire (Multiplayer)
    • Deploying Namazu Crossfire in your game
  • Roblox
    • Roblox Overview
    • Secure Player Authentication & Registration
    • Global Matchmaking
    • Roblox Security Best Practices
  • Container on Demand
    • Namazu Conductor
    • Namazu Conductor Admin API
    • Configuring Namazu Conductor Providers
  • Commerce
    • Stripe
      • Stripe
      • Configuring the Stripe Element
      • Stripe REST API Reference
      • Stripe REST API Reference

Game Engine & Client Support

  • Unity
    • Elements Unity Plugin
    • Unity Crossfire Plugin
  • Gamemaker
    • Incorporating GMEXT-Elements into a GameMaker Project

Troubleshooting

  • Common Issues with Docker
  • Local SDK
    • Unable to deploy application : dev.getelements.elements.sdk.exception.SdkElementNotFoundException
    • Could not load class : java.lang.NoClassDefFoundError
  • Namazu Elements Community Edition
    • Common Issues with Docker
    • Unable to deploy application : dev.getelements.elements.sdk.exception.SdkElementNotFoundException
    • Running in the IDE
      • Exception in monitor thread while connecting to server localhost:27017
      • Could not deployAvailableApplications Jetty server Failed to bind to /0.0.0.0:8080 Address already in use

Releases

  • 3.8 Release Notes
  • 3.7 Release Notes
  • 3.6 Release Notes
  • 3.5 Release Notes
  • 3.4 Release Notes
  • 3.3 Release Notes
  • 3.2 Release Notes
  • 3.1 Release Notes
View Categories
  • Home
  • Docs
  • Add-Ons
  • Commerce
  • Stripe
  • Configuring the Stripe Element

Configuring the Stripe Element

Est. read time: 3 min read

AI Doc Summarizer Doc Summary
AI Doc Summarizer Thinking Thinking

The Stripe Element is configured through standard Elements deployment attributes, with two of them — the API key and webhook signing secret — overridable at runtime from a superuser admin panel without a rebuild or redeploy. This page covers the available attributes, how credential precedence works, running multiple environments safely, and the Maven coordinates other Elements need to depend on it.


Attributes #

AttributeDefaultDescription
dev.getelements.elements.stripe.api.keynone — requiredStripe secret API key (sk_live_... or sk_test_...). Marked sensitive.
dev.getelements.elements.stripe.webhook.secretnone — requiredStripe webhook signing secret (whsec_...), shown by Stripe when you register a webhook endpoint. Marked sensitive.
dev.getelements.elements.Element.rs.root/Element/stripe/apiREST API root path for every endpoint this Element exposes.
dev.getelements.elements.auth.enabledtrueEnables the Elements Session auth filter for this Element’s endpoints.
dev.getelements.elements.stripe.price.cache.ttl.ms300000 (5 minutes)How long listPrices and the catalogue-wide resolvePriceForMeterEventName cache their results in memory before re-querying Stripe.

Setting Attributes #

Deployed instances — set attributes from the admin panel under Element Management. Select the deployment and edit its attributes directly; no rebuild is required.

Local development — set attributes as system properties when launching the debug module:

mvn -pl debug exec:java 
  -Ddev.getelements.elements.stripe.api.key=sk_test_YOUR_KEY 
  -Ddev.getelements.elements.stripe.webhook.secret=whsec_YOUR_SECRET

Defaults can also be baked into Element/src/main/elm/dev.getelements.Element.attributes.properties so they’re packaged into the .elm archive itself — these are still overridden by anything set at the deployment level.


Credential Precedence and the Admin Panel #

The API key and webhook secret can also be set from the “Stripe” tab in the superuser admin dashboard, or directly via PUT /stripe/config. Values saved this way are persisted to a MongoDB document and take precedence over the deployment attributes whenever they’re non-blank — GET /stripe/config returns the effective values with everything but the last four characters masked (e.g. ••••1234), so the full secret is never re-displayed once saved.

This lets an operator rotate a compromised key or point a deployment at a different Stripe account without touching deployment attributes or redeploying. If no override has been saved, the Element falls back to the injected attribute values above.


Multi-Environment Deployments #

Run separate environments (e.g. MyGame_Dev, MyGame_Staging, MyGame_Prod) by deploying a Distinct instance of this Element per environment, each with:

  • Its own Stripe API key and webhook secret, configured independently through the Stripe → Configuration admin tab
  • Its own MongoDB database (or at minimum a separate MongoDB instance), so configuration and event-log data are naturally isolated with no extra namespacing required

In the Elements platform this maps directly to creating one Application deployment per environment. Because each deployment connects to its own database, the DAO layer needs no special configuration to achieve isolation.

Warning

Do not share one MongoDB database between multiple deployments of this Element. The configuration and webhook event-log collections use fixed, unnamespaced names (stripe_config and stripe_event_log), so sharing a database lets one deployment’s credentials and event log bleed into another’s.


Build and Run #

# Build everything (requires Java 21 + Maven)
mvn install

# Start local MongoDB
Docker compose -f services-dev/Docker-compose.yml up -d

# Run locally
mvn -pl debug exec:java

The admin UI panel is only built under the build-ui Maven Profile (mvn install -Pbuild-ui); its React bundle is copied into the .elm archive’s ui/ directory and registers a “Stripe” tab (icon: CreditCard, route: stripe) in the superuser dashboard.


Maven Coordinates #

Deploy the .elm archive built by the Element module. Other Elements that call StripeService directly (rather than only consuming its events or REST API) should also depend on the api module, provided at compile time:

<!-- .elm archive (for deployment) -->
<dependency>
    <groupId>dev.getelements.elements.stripe</groupId>
    <artifactId>Element</artifactId>
    <version>1.0.3</version>
    <type>elm</type>
</dependency>

<!-- API interfaces (for other Elements that depend on this one) -->
<dependency>
    <groupId>dev.getelements.elements.stripe</groupId>
    <artifactId>api</artifactId>
    <version>1.0.3</version>
    <classifier>dev.getelements.elements.stripe.api</classifier>
    <scope>provided</scope>
</dependency>

Integration Tests #

Integration tests exercise the real Stripe API in test mode. Credentials come from environment variables so CI can inject them as secrets:

Env varMaven propertyPurpose
STRIPE_TEST_API_KEYstripe.test.apiKeyStripe test-mode secret key
STRIPE_TEST_CUSTOMER_IDstripe.test.customerIdExisting test-mode customer to reuse
STRIPE_TEST_PRICE_IDstripe.test.priceIdExisting test-mode price to reuse, instead of creating a new Product + Price every run
export STRIPE_TEST_API_KEY=sk_test_YOUR_KEY
mvn verify -pl integration-test

Each variable can also be overridden per run with the matching -Dstripe.test.* system property. Subscription tests create and tear down a real subscription automatically. Webhook tests generate and verify their own HMAC signatures against a fixed, non-secret test key, and run without any network connection or Stripe credentials.


Related Pages #

  • Stripe — Element overview and core concepts
  • Stripe Webhooks and the Typed Event Bus — webhook Dashboard setup and the typed event list
  • Stripe REST API Reference — full REST endpoint reference

What are your Feelings
Still stuck? How can we help?

How can we help?

Updated on August 14, 2026
StripeStripe REST API Reference
Table of Contents
  • Attributes
  • Setting Attributes
  • Credential Precedence and the Admin Panel
  • Multi-Environment Deployments
  • Build and Run
  • Maven Coordinates
  • Integration Tests
  • Related Pages
  • Documentation
  • Terms of Service
  • Privacy Policy
  • Contact us
  • Linkedin
  • Join our Discord

Namazu Studios LLC is powered by Namazu Elements, an open source modular backend framework for connected games.

Namazu Elements
  • Download
  • About Elements
  • Open source
  • Documentation
  • Support
Namazu Studios
  • Case Studies
  • About Us
  • News
Best realtime game backends 2026
Get in Touch
  • info@namazustudios.com
  • Book a call
  • (619) 862-2890
  • Linkedin
  • Discord

©2008-2026 Namazu Studios. All Rights Reserved.