Performs the cardholder's 3DS authentication.
Must be called after POST /v1/acquiring/payments/3ds/setup.
The 200 response has two possible outcomes, distinguished by code:
ACCEPTED(frictionless): authentication is complete, no cardholder interaction. Usecavv,xid,
authenticationIdanddirectoryServerTransactionIdin thethreeDsDatafield of the payment call.WAITING_3DS_AUTHENTICATION(challenge): the issuer requires the cardholder to authenticate. Run the
challenge flow below.
Challenge flow
- Open an iframe and submit an HTML form to it:
POSTtostepUpUrl(application/x-www-form-urlencoded)
with the fieldsJWT=accessTokenandMD=authenticationId. Size the iframe withiframeDimensions. - The cardholder completes the challenge inside the iframe.
- The issuer posts the result to your
returnUrl(form-urlencoded) with the fieldsTransactionId,
Response(sometimesJWT) andMD. Because this request runs inside the iframe, your endpoint must
answer with an HTML page that notifies the parent window (e.g.window.parent.postMessage). - Call
POST /v1/acquiring/payments/3ds/challenge-resultwithauthenticationTransactionId=
TransactionIdreceived in step 3 (fallback:authenticationId) and the samerequestIdused here.
Sandbox and production
The request and response contract is the same in both environments. Only the party that posts to your
returnUrl differs.
- Production: do not send
sandboxReturnCallback. SendreturnUrlas usual; Autra forwards it to the
acquirer and the issuer posts the challenge result to it. Autra does not checkreturnUrlagainst the
sandbox simulator's origin list in this flow. - Sandbox, default: without
sandboxReturnCallback, the simulated challenge page notifies the parent
window directly throughpostMessageand does not post to yourreturnUrl. - Sandbox, simulated return callback: send
sandboxReturnCallback: trueto exercise the formPOSTto
yourreturnUrl. ThereturnUrlmust be HTTPS and its origin (scheme and host) must have been enrolled
for your sandbox tenant by Autra beforehand. UsestepUpUrl,accessTokenandauthenticationIdexactly
as returned; theaccessTokenis valid for 5 minutes. After the simulated challenge is confirmed, the
simulator postsTransactionId,ResponseandMDto yourreturnUrl, withTransactionIdandMD
both equal toauthenticationId. ThereturnUrlis checked only when the simulator requests a challenge:
a frictionless200does not confirm that your return URL is enrolled.
Sending sandboxReturnCallback: true outside the sandbox simulator returns 400 with
errors[0].code = SANDBOX_ONLY.
The origin enrollment, the signed accessToken and its 5-minute validity are controls of the sandbox
simulator only. They are not new requirements for production.
Handling the return request
The POST to your returnUrl is a form submission made by the cardholder's browser inside the challenge
iframe. It does not carry an Autra OAuth Bearer token, so do not require one on that route.
- In your
returnUrlendpoint, match the receivedMD(and any state you placed in the URL) against a
pending authentication of your own, and consume that state only once. - In the parent page, accept the
postMessageonly whenevent.sourceis the challenge iframe's window and
event.originis the expected one. In production and in the sandbox withsandboxReturnCallback: true,
the message comes from your ownreturnUrlpage, so expect the origin of yourreturnUrl. In the default
sandbox flow, the message comes from the simulator page, so expecthttps://sandbox.autra.io. - Treat the return request as a notification, not as proof of authentication. The final confirmation is
alwaysPOST /v1/acquiring/payments/3ds/challenge-result, called from your backend with the Bearer token.
3DS return URL and webhooks are separate
returnUrl is sent on each authenticate request and is unrelated to Outbound Webhooks. Registering a
webhook endpoint does not configure the 3DS return, and sending returnUrl does not register a webhook.
Rejection: when the issuer refuses the authentication, the response is 422 with
errors[0].code = AUTH_REJECTED and the issuer's message in errors[0].msg (for example "Frictionless
Authentication rejected by the Issuer."). Any 422, and any response other than 200 with code
ACCEPTED or WAITING_3DS_AUTHENTICATION, means the payment must not proceed with 3DS data.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Invalid access token
403Unauthorized IP or merchant not found
500Acquirer communication error. In the sandbox, also returned when the simulator requests a challenge and sandboxReturnCallback: true was sent with a returnUrl that is not HTTPS or whose origin is not enrolled for the tenant.
