Continue após um desafio 3DS
Retome um pagamento pausado por um desafio 3DS. Passe o sessionId da resposta pending_3ds. Nenhuma chave de API é necessária.
status: "pending_3ds", o titular do cartão deve concluir um desafio 3D Secure na URL fornecida em actionRequired.url. Assim que o titular do cartão termina o desafio, chame POST /payment/resume para continuar processando o pagamento e receber o resultado final.
Como funciona a retomada de 3DS
- A sua chamada de purchase ou autorização devolve
status: "pending_3ds"com um objetoactionRequired. - Redirecione o titular do cartão (ou abra um iframe) para
actionRequired.url. - Depois que o desafio é concluído, o titular do cartão é redirecionado de volta para o seu site.
- Você chama
POST /payment/resumecom osessionIdpara obter o resultado final do pagamento.
sessionId age como a credencial e é limitado a um único pagamento pendente. As sessões expiram 15 minutos depois que o desafio 3DS é emitido — se a sessão expirou, o purchase ou a autorização original deve ser refeito.status final, refusalCode em caso de recusa, e todo o resto — a mesma forma de purchase/authorization.
Retomar após um desafio 3DS
Sessão expirada —400 Bad Request
Corpo
The sessionId from a pending_3ds / pending_action payment response.
Resposta
Resumed payment result
The Therius payment id. Returned by POST /payment/authorization and POST /payment/purchase; use it as the {id} path segment for capture, refund, cancel and cancel_or_refund.
"9f8b2c1e-4d5a-6b7c-8d9e-0f1a2b3c4d5e"
captured - funds settled; authorized - funds reserved, call capture to settle; declined - issuer declined, see refusalCode; pending_3ds - a 3DS challenge is required, see actionRequired; pending_action - an external action (redirect, voucher) is required, see actionRequired; failed - processing error unrelated to the issuer; cancelled - authorization voided; refunded - captured funds returned.
captured, authorized, declined, pending_3ds, pending_action, failed, cancelled, refunded Therius receipt ID, for reconciliation, support and Inquiry. NOT the handle for capture/refund/cancel — use id for that.
"PC-1234567890"
Your orderCode, echoed back.
Your merchantCode, echoed back.
Issuer authorization code on an approved payment. The field name is misspelled on the wire (no h) - this is intentional and stable.
Payment method used, e.g. card, pix, ach.
Code of the gateway connection that processed the payment.
Display name of the gateway connection that processed the payment.
Card details from the response: masked PAN, brand, type, and the network transaction/reference IDs to cite on future MIT charges.
Alternative-payment-method details (redirect URL, QR code, barcode) when paymentMethod is an APM.
Present when the card was tokenized (tokenize: true).
Present when status is pending_3ds or pending_action. Describes what the cardholder must do next — with the Therius JS SDK, pass the whole object to sdk.handleAction().
Present when status is declined. See the Declined Payments concept page for the full code table and how to react to each recoveryAction.

