code-docs/plugins/connections/stripe.md
Stripe payment connection for Lowdefy.
| Type | Purpose |
|---|---|
Stripe | Connect to Stripe API |
connections:
- id: stripe
type: Stripe
properties:
secretKey:
_secret: STRIPE_SECRET_KEY
| Type | Purpose |
|---|---|
StripeRequest | Generic Stripe API call |
requests:
- id: createCustomer
type: StripeRequest
connectionId: stripe
properties:
resource: customers
method: create
params:
email:
_state: email
name:
_state: name
requests:
- id: createPayment
type: StripeRequest
connectionId: stripe
properties:
resource: paymentIntents
method: create
params:
amount: 2000 # $20.00 in cents
currency: usd
customer:
_state: customerId
requests:
- id: getCustomers
type: StripeRequest
connectionId: stripe
properties:
resource: customers
method: list
params:
limit: 10
requests:
- id: subscribe
type: StripeRequest
connectionId: stripe
properties:
resource: subscriptions
method: create
params:
customer:
_state: customerId
items:
- price:
_state: priceId
Stripe webhooks can be handled via custom API endpoints. Verify signatures server-side for security.