You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): make provider layer pluggable with batch product sync and preflight checks
Replace single syncProduct with batch syncProducts on PaymentProvider interface.
Add provider preflight checks (external customers, cross-provider subscriptions)
to push and status CLI commands. Lazy provider customer creation — customers are
created on the provider only when needed (subscribe, portal, payment method).
Remove checkout fallback from upgrade flow since active subscriptions already
have payment methods on file. Exclude scheduled subscriptions from duplicate
detection warnings.
constmessage=`${ctx.provider.name} account has existing customers that are not synced with PayKit. Use a fresh ${ctx.provider.name} account or remove existing customers from it before proceeding.`;
`Found ${String(row.count)} active subscription${row.count===1 ? "" : "s"} linked to "${row.providerId}" but current provider is "${currentProviderId}". Existing subscriptions must be canceled before switching providers.`,
0 commit comments