stripe

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stripe provides verifiers for Stripe API keys (live and test). It uses the Stripe Balance API GET /v1/balance endpoint with Basic auth to check key validity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LiveKeyVerifier

type LiveKeyVerifier struct {
	// contains filtered or unexported fields
}

LiveKeyVerifier checks whether a Stripe live API key is active by calling the Stripe Balance API. It NEVER logs or persists raw key values.

func (*LiveKeyVerifier) Type

func (v *LiveKeyVerifier) Type() string

Type returns the detector ID this verifier handles.

func (*LiveKeyVerifier) Verify

Verify checks if the detected Stripe live API key is valid/active.

type TestKeyVerifier

type TestKeyVerifier struct {
	// contains filtered or unexported fields
}

TestKeyVerifier checks whether a Stripe test API key is active. It uses the same endpoint and logic as LiveKeyVerifier.

func (*TestKeyVerifier) Type

func (v *TestKeyVerifier) Type() string

Type returns the detector ID this verifier handles.

func (*TestKeyVerifier) Verify

Verify checks if the detected Stripe test API key is valid/active.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL