You're viewing a demo portfolio

Join the waitlist
PRSM

discovery_add_payment_method

Active

Tool of Disco

declared in 1.26.0

Attach a Stripe payment method to your Disco account. The payment method must be tokenized via Stripe's API first — card details never touch Disco's servers. Required before purchasing credits or subscribing to a paid plan. To tokenize a card, call Stripe's API directly: POST https://api.stripe.com/v1/payment_methods with the stripe_publishable_key from your account info. Args: payment_method_id: Stripe payment method ID (pm_...) from Stripe's API. api_key: Disco API key (disco_...). Optional if DISCOVERY_API_KEY env var is set.

Parameters schema

{
  "type": "object",
  "title": "discovery_add_payment_methodArguments",
  "required": [
    "payment_method_id"
  ],
  "properties": {
    "api_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Key",
      "default": null
    },
    "payment_method_id": {
      "type": "string",
      "title": "Payment Method Id"
    }
  }
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

Disco

https://github.com/leap-laboratories/discovery-engine

2/7 registries
View full server →