HSLG Media

UnconfiguredStripePaymentGateway.php

UnconfiguredStripePaymentGateway.php

Source file: backend/payment-modules/stripe/UnconfiguredStripePaymentGateway.php

Module: backend-payment-modules

Size: 20 lines

SHA-256: 18f6d4fa5ba5354c1c6954d358b897bd9c97298fe1aeba2197721b9a44748acd

Responsibility

Holds payment adapter seams; Stripe remains fail-closed until reviewed live configuration.

Declared entry points

  • UnconfiguredStripePaymentGateway — source line 9.
  • beginPayment — source line 11.

Imports and dependencies

No direct import declarations detected in this file.

Behaviour and audit locations

  • Line 3: namespace Hslg\Backend\PaymentModules\Stripe;
  • Line 6: * Never place demo Stripe outcomes, raw card numbers or secret keys in app
  • Line 9: final class UnconfiguredStripePaymentGateway implements StripePaymentGateway
  • Line 16: string $durableIdempotencyKey
  • Line 18: throw new \RuntimeException('Stripe is not configured; no payment was created.');

Relationship to the system

This page is the file-level source reference, not the architecture rationale. Read the module explanation, the corresponding architecture decision and user guide before changing behaviour. Names and line locations above are extracted from this exact source version; they are reference points, not proof that an external service or a phone feature works.

Change verification

Review the entry points and errors in this file, then run the module’s associated tests, source dependency gate, history gate and documentation coverage check. If the file changes an API response, user interaction, data model, deployment or third-party dependency, revise those human explanations and disaster recovery/licensing when relevant. Do not infer actual native or external API operation from source presence.