Context
The SDK entry point for starting a checkout without exposing Gateway credentials.
Scope
Pacto.init({ publishableKey }).
pacto.createCheckoutSession({ listingId | quote, mode }) negotiates with the Gateway (OAuth-style handshake) and returns a short-lived clientSecret.
- Session expiration and refresh handling.
Acceptance criteria
- An invalid or expired session produces a typed error.
- The
clientSecret cannot be escalated to other sessions.
Dependencies
#11 (needs the Gateway key model).
Context
The SDK entry point for starting a checkout without exposing Gateway credentials.
Scope
Pacto.init({ publishableKey }).pacto.createCheckoutSession({ listingId | quote, mode })negotiates with the Gateway (OAuth-style handshake) and returns a short-livedclientSecret.Acceptance criteria
clientSecretcannot be escalated to other sessions.Dependencies
#11 (needs the Gateway key model).