SDK reference · Python SDK

prov.authorize.checkout_approvals.report_threeds_result

prov.authorize.checkout_approvals.report_threeds_result in Python SDK. Report what your payment provider said on the approval's bank check: trans_status, eci, authentication_id, challenge (normalised), or provider_response (its own response).

Signature

prov.authorize.checkout_approvals.report_threeds_result(approval_id: str, **body: Any = …) -> Any

Parameters

approval_idstrRequired
**bodyAny

Request fields

idstringpathRequired
The approval's coap_ ID.
trans_statusenum
The EMV transaction status (C: the bank asks for a challenge). One of Y, A, N, R, U, C, I.
ecistring
The ECI your provider returned.
authentication_idstring
The provider's id for the authentication.
versionstring
The EMV 3DS message version.
challengeobject
With C: the https page the approval page frames, and the form fields to post to it.
Show child attributes
urlstringRequired
An https URL.
methodenum
How to load it (default POST). One of POST, GET.
fieldsobject
Form fields (creq, JWT, …).
provider_responseobject
Your provider's authentication response, as it came.

Returns

Any The bank check as it now stands.

HTTP operation

POST /v1/authorize/checkout_approvals/{id}/threeds_results: Report a bank check's result

Errors

Example

const bankCheck = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_approvals/coap_01M7P1EQ44Z7FS8K6VGSWM43FP/threeds_results`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({ trans_status: "Y", eci: "05", authentication_id: "8a880dc0-d2d2-4067-bcb1-b08d1690b26e", version: "2.2.0" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.