Guides
Journeys

Hosted payer pages

The pages that stand in for the bank or the Okto screen the player would open, and how they return to your application.

Several Okto products send the player out of your application: to pay a QR Code, approve at the bank through Open Finance, confirm with biometrics or take a selfie. In Mimicr those screens are simple pages on the Okto host, with one button per player decision. The API returns their address in the same fields Okto uses (link, url).

Which pages exist

FlowAddressComes fromButtons
Classic deposit/invoicelink/{id}link and pdf of Create a depositQR Code, copy and paste, and a link to the simulated bank
Classic deposit (bank)/mimicr/deposit/{id}link on the page abovePay with Pix, let it expire
Withdrawal/mimicr/withdraw/{id}withdrawal id (the API returns no URL: the withdrawal settles on its own in 15 seconds)Credit, fail before that
Automatic Pix/mimicr/automatic/{id}recurrence idPay and authorize, pay only, refuse, cancel
Biometric enrollment/mimicr/biometric-enrollment/{id}url of Create an enrollmentAuthorize at the bank, revoke
Biometric journey/mimicr/biometric-journey/{id}url of Create a whitelabel journeyPay with biometrics, fail, expire
Pix Direct/mimicr/direct/{id}url of Create a paymentApprove, refuse
Smart PIX/mimicr/smart/{id}url of Create a journeyAuthorize, refuse
Pay and Play 2.0/mimicr/pay-and-play/{id}url of Create a journeyPick a CPF and amount and pay, expire
Face Match/mimicr/face-match/{id}url of Create a journeySend the selfie, give up
KYC onboarding/mimicr/kyc-onboarding/{id}url of Start onboardingInformational only

Every address is relative to https://okto.mimicr.dev. The pages require no authentication: the id plays the role of the link Okto would send the player. The pages are in Portuguese.

When the operation's CPF is one of the failing test CPFs, the page warns before the click which code will show up. The page of an operation already decided shows "Esta jornada já foi concluída" with the current status.

Back to your application

Some flows accept return URLs. After the click, the page answers 303 to them:

FlowFieldsSuccessError
Pix Direct, biometric journeycallbackUrl, onErrorCallbackUrlcallbackUrl?state={id}&ticket=…onErrorCallbackUrl?state={id}&error=access_denied
Face MatchredirectUrlredirectUrl?journeyId={id}redirectUrl?journeyId={id}

state is the operation id. In Mimicr, ticket is an opaque value with no meaning to the API. Without a return URL, the page shows the outcome. In every case the signed notification goes to the URL set on the operator; treat the notification, not the redirect, as the source of truth.

In automated tests

The same buttons exist as player steps in the control API:

bash
npx mimicr action okto player.step step=direct:approve id=<payment-id>
npx mimicr action okto player.step step=pay-and-play:pay id=<journey-id> taxId=604.184.437-34 amount=50.00

The full list of steps is in Sandbox control.