pai
    Preparing search index...

    Function requestCardPayment

    • Asks Phantom AI for a card payment on Stripe's own checkout page (POST /purchase/card with hosted: true). With target_api_key the credit goes on that key; without it, paying issues a new key. apiKey may be empty.

      Parameters

      • apiKey: string
      • opts: { amount_usd: number; target_api_key?: string }
      • OptionalbaseUrl: string

      Returns Promise<CardPaymentRequest>

      CliError card_no_link when the answer has no checkout link.