Skip to content

feat(core): session handshake + PactoSession #12

Description

@aguilar1x

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).

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions