Skip to content
Paykit
Esc
↑↓navigate↵open⌘Jpreview
On this page

Verify

Check one account's standing against the catalog and the configured provider.

Source: packages/paykit/src/Verify.ts Kind: Primitive

Check one account’s standing against the catalog and the configured provider. A clean account returns []; every finding is a typed mismatch naming the account, the tier and the provider, so a console can link straight to it.

verifyState is the same check without a store, for doctor and tests.

Finding accounts a checkout abandoned

const mismatches = yield* Paykit.Verify({ account });
if (mismatches.some((m) => m._tag === "MissingProviderRef")) {
  yield* reopenCheckout({ account });
}

Was this page helpful?