Stripe
Customer, PaymentIntent, payment link, draft invoice, produk dan harga, charge, saldo, langganan. PaymentIntent oleh agent dibatasi nominal dan mata uang, confirm, capture, refund dan finalize hanya lewat node
Tentang
Plugin Graphrt untuk Stripe API. Mencakup customer, PaymentIntent, payment link, invoice, produk dan harga, charge, saldo, refund dan langganan. Setiap request dikunci ke Stripe-Version 2026-10-28.endive, dan setiap pembuatan mengirim Idempotency-Key baru. Dibuat dengan lapisan REST deklaratif (definition.mjs) ditambah tiga wrapper kecil untuk keamanan agent di lib/.
Yang bisa dilakukan
- Customers: list_customers, search_customers (Stripe search syntax), get_customer, create_customer, update_customer
- PaymentIntents: list_payment_intents, get_payment_intent, create_payment_intent (unconfirmed), confirm_payment_intent, capture_payment_intent, cancel_payment_intent (the last three node only)
- Payment links: list_payment_links, create_payment_link (buy.stripe.com link for existing prices)
- Invoices: list_invoices, get_invoice, create_invoice (always a draft: auto_advance=false), add_invoice_item, finalize_invoice, send_invoice, pay_invoice (the last four node only)
- Catalog: list_products, get_product, create_product, list_prices, create_price
- Money in and out: list_charges, get_charge, get_balance, list_balance_transactions, list_refunds, create_refund (node only)
- Subscriptions: list_subscriptions, get_subscription, cancel_subscription (node only)
- api_request: any other endpoint (GET only and allowlisted paths for agents), e.g. /v1/disputes
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- List customers
stripe.list_customers - Search customers
stripe.search_customers - Get customer
stripe.get_customer - Create customer
stripe.create_customer - Update customer
stripe.update_customer - List PaymentIntents
stripe.list_payment_intents - Get PaymentIntent
stripe.get_payment_intent - Create PaymentIntent
stripe.create_payment_intent - Confirm PaymentIntent
stripe.confirm_payment_intent - Capture PaymentIntent
stripe.capture_payment_intent
Tampilkan semua 35 aksi
- Cancel PaymentIntent
stripe.cancel_payment_intent - List payment links
stripe.list_payment_links - Create payment link
stripe.create_payment_link - List invoices
stripe.list_invoices - Get invoice
stripe.get_invoice - Create draft invoice
stripe.create_invoice - Add invoice item
stripe.add_invoice_item - Finalize invoice
stripe.finalize_invoice - Send invoice
stripe.send_invoice - Pay invoice
stripe.pay_invoice - List products
stripe.list_products - Get product
stripe.get_product - Create product
stripe.create_product - List prices
stripe.list_prices - Create price
stripe.create_price - List charges
stripe.list_charges - Get charge
stripe.get_charge - Get balance
stripe.get_balance - List balance transactions
stripe.list_balance_transactions - List refunds
stripe.list_refunds - Create refund
stripe.create_refund - List subscriptions
stripe.list_subscriptions - Get subscription
stripe.get_subscription - Cancel subscription
stripe.cancel_subscription - Stripe API request
stripe.api_request
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
STRIPE_SECRET_KEYWajibSecret key (sk_test_... / sk_live_...) or, better, a restricted key (rk_...), sent as Basic auth -
STRIPE_TOOL_ALLOW_WRITEOpsional1 lets agent tools create/update customers, products, prices (capped) and draft invoices -
STRIPE_TOOL_ALLOW_PAYMENT_LINKSOpsional1 lets agent tools create payment links -
STRIPE_TOOL_ALLOW_PAYMENT_INTENTSOpsional1 lets agent tools create (unconfirmed) PaymentIntents, within the cap below -
STRIPE_TOOL_MAX_AMOUNTFor agent PaymentIntents and pricesMaximum amount of an agent-created PaymentIntent and unit_amount of an agent-created price, in Stripe's minor units (see below). Unset or 0 refuses both -
STRIPE_TOOL_ALLOWED_CURRENCIESFor agent PaymentIntents and pricesComma-separated currencies agents may use, e.g. usd,eur. Unset refuses both -
STRIPE_TOOL_API_EXTRA_PATHSOpsionalMore GET paths agents may reach with api_request, comma-separated, * = one segment
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Stripe.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install stripe - id: intent
type: stripe.create_payment_intent
amount: 15000 # $150.00
currency: usd
customer: "{{#start.customer_id#}}"
metadata: { order_id: "{{#start.order_id#}}" }
- id: refund
type: stripe.create_refund
payment_intent: "{{#intent.data.id#}}"
amount: 5000