stripe

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 9 Imported by: 0

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