Skip to content

SudoSOS Back-end API / stripe / payment-request-checkout-service

Stripe: Payment Request Checkout Service ​

This is the module page of the payment-request-checkout-service.

Orchestrator for "start a Stripe payment session for an existing PaymentRequest". Lives outside both StripeService and PaymentRequestService so the two services do not import each other.

The cross-edge that used to live inside PaymentRequestService.startPayment (a new StripeService(...) call) is hoisted here. That keeps PaymentRequestService as a pure CRUD + state-machine module and lets StripeService import PaymentRequestService normally for the webhook settlement hook in createNewPaymentIntentStatus.

Classes ​

ClassDescription
PaymentRequestCheckoutServiceBootstrap a Stripe payment session for a PaymentRequest.