stripe
هذا المحتوى غير متوفر بلغتك بعد.
Stripe Plugin
Section titled “Stripe Plugin”Full Stripe billing integration, subscriptions, webhooks, and customer portal. Pro plugin.
Requires: Basic license tier or higher.
nself license set nself_pro_...
Install
Section titled “Install”nself license set nself_pro_xxxxx...nself plugin install stripeWhat It Does
Section titled “What It Does”Syncs your complete Stripe account state into Postgres in real time: customers, subscriptions, invoices, payment intents, products, prices, refunds, and disputes. Handles Stripe webhooks to keep data current. Exposes a customer portal API for self-service subscription management. With 24 synced tables, you can query all billing data directly via Hasura GraphQL without hitting the Stripe API.
Configuration
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
STRIPE_PORT | 3070 | Stripe plugin port |
STRIPE_SECRET_KEY | none | Stripe secret key (sk_live_… or sk_test_…) |
STRIPE_WEBHOOK_SECRET | none | Webhook endpoint signing secret |
STRIPE_PORTAL_RETURN_URL | none | Customer portal return URL |
| Port | Purpose |
|---|---|
| 3070 | Stripe integration REST API |
Database Tables
Section titled “Database Tables”24 tables added to your Postgres database, including:
np_stripe_customers: customer recordsnp_stripe_subscriptions: subscription statenp_stripe_invoices: invoice historynp_stripe_payment_intents: payment recordsnp_stripe_products: product catalognp_stripe_prices: pricing tiersnp_stripe_refunds: refund recordsnp_stripe_disputes: dispute/chargeback records- And 16 more for coupons, trials, tax rates, etc.
Nginx Routes
Section titled “Nginx Routes”| Route | Target |
|---|---|
/stripe/webhook | Stripe event webhook receiver |
/stripe/portal | Customer portal session API |
POST /stripe/webhook: Stripe webhook receiverPOST /portal/session: Create customer portal sessionPOST /checkout/session: Create checkout sessionGET /subscriptions/{customer_id}: Get customer subscription state