createOnboardingSessionWithPublishableKey

Deprecated

Mint the onboarding session from your backend with sk_. A publishable key cannot create one.

Mints an onboarding session using the publishable key.

The API rejects this unless the merchant is on the legacy client-credential flag. Mint the session from your backend with a secret key and pass clientSecret instead. The onboarding flow does not call this.

Return

A Pair containing the decoded OnboardingSessionResponses.OnboardingSession on success, or a NetworkingError on failure.

Parameters

request

The request body specifying the account and onboarding steps.