VerifiedStripeReceipt.php
Source file: backend/services/payments/VerifiedStripeReceipt.php
Module: backend-services
Size: 39 lines
SHA-256: 442f873de6a4b02774991ae595a0218827ff4665c91ec13ea5d1899fa5390906
Responsibility
Implements business operations with domain-specific idempotency, authentication and payment rules.
Declared entry points
VerifiedStripeReceipt— source line 12.reconcile— source line 17.
Imports and dependencies
No direct import declarations detected in this file.
Behaviour and audit locations
- Line 6:
* Validate a STRIPE-SIGNATURE-VERIFIED, independently fetched PaymentIntent - Line 12:
final class VerifiedStripeReceipt - Line 15:
* @param array<string,mixed> $intent independently retrieved from Stripe - Line 30:
throw new \DomainException('Stripe receipt does not match the priced order.'); - Line 36:
default=>throw new \DomainException('Unrecognised Stripe payment status.'),
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.