SDK reference · Node SDK
prov.authorize.checkoutApprovals.reportThreeDSResult
prov.authorize.checkoutApprovals.reportThreeDSResult in Node SDK. Report what your payment provider said on the approval's bank check (a challenge for the page, or the outcome).
Signature
prov.authorize.checkoutApprovals.reportThreeDSResult(id: string, params: ThreeDSResultParams): Promise<CheckoutBankCheck>Parameters
idstringRequiredparamsThreeDSResultParamsRequired
Request fields
idstringpathRequired- The approval's
coap_ID. trans_statusenum- The EMV transaction status (
C: the bank asks for a challenge). One ofY,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
Promise<CheckoutBankCheck> The bank check as it now stands.
HTTP operation
POST /v1/authorize/checkout_approvals/{id}/threeds_results: Report a bank check's result
Errors
- authentication_required
- insufficient_scope
- parameter_invalid
- rate_limit_exceeded
- resource_missing
- threeds_bank_check_closed
- threeds_bank_step_not_configured
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();import os
import httpx
api = os.environ["PROVENANCE_API"]
bank_check = httpx.post(f"{api}/v1/authorize/checkout_approvals/coap_01M7P1EQ44Z7FS8K6VGSWM43FP/threeds_results", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={"trans_status": "Y", "eci": "05", "authentication_id": "8a880dc0-d2d2-4067-bcb1-b08d1690b26e", "version": "2.2.0"}).json()