VPP Enrollment Check {#registration_check}
==========================================

Integrators use the pa_setup call to determine whether a user is already enrolled in Visa Payment Passkey (VPP).

pa_setup Request {#registration_check_section_b2s_wfk_kbc}
----------------------------------------------------------

Listed below is the PA_setup request with the new Payment Object and fields added for FIDO.

```
{
    "merchantInformation": {
        "merchantDescriptor": {
            "name": "fidomid1"
        }
    },
    "paymentInformation": {
        "card": {
            "type": "001",
            "expirationMonth": "12",
            "expirationYear": "2025",
            "number": "405106930XXXXXX2200121"
        }
    },
    "acquirerInformation": {
        "country": "US"
    },
    "consumerAuthenticationInformation": {
        "referenceId": "6a0dc054-b7e5-49c4-af61-127191594376",
        "languagePreference": [
            "en",
            "es"
        ]
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "12.34",
            "currency": "USD"
        },
        "billTo": {
            "email": "82eTu614xzNf@somewhere.com"
        }
    }
}
 
 
```

{#registration_check_codeblock_qpq_4gk_kbc}

Handling the pa_setup Response {#registration_check_section_ggm_tgk_kbc}
------------------------------------------------------------------------

When you receive a response, you should expect for an authentication flow to receive a FlowType of "Authentication" like shown in the samples code below:

```
{
  "clientReferenceInformation": {
    "code": "1741068591217"
  },
  "consumerAuthenticationInformation": {
    "methodUrlPresent": "true",
    "fido": {
      "reasonDescription": "SUCCESS",
      "fidoFlowType": "AUTHENTICATION",
      "reasonCode": "1001"
    },
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJlMzFjMGM3Yi0zMjRmLTQ5MDAtYmNmMS01MGNkZDIzYjM0NjAiLCJpYXQiOjE3NDEwNjg1OTIsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIsImV4cCI6MTc0MTA3MjE5MiwiT3JnVW5pdElkIjoiNjFiY2MxM2QzOTAxZTkxYWJmOWZiZWFhIiwiUmVmZXJlbmNlSWQiOiI1MWNhNjY3OS0xMmVkLTQ3YzQtODk4Mi0xYTI5ZTEwZDQ1ODcifQ._1THZ3Jgc40Vfh2pMfy0WzBpBSPEonDIdHLJ5QGraBA",
    "deviceDataCollectionUrl": "https://centinelapistag.cardinalcommerce.com/V2/Cruise/Collect",
    "referenceId": "51ca6679-12ed-47c4-8982-1a29e10d4587",
    "token": "AxizbwSTkbvtN1/knZ+B/8EBTaxtJM/ABPGhk2/+xcWFCnzAOAAALQRs"
  },
  "id": "7410685914097100103553",
  "status": "COMPLETED",
  "submitTimeUtc": "2025-03-04T06:09:52Z"
}
```

{#registration_check_codeblock_bzd_2hk_kbc} NOTE If pa_setup returns a failure for authentication, then the integrator should continue with 3DS authentication using the pa_enroll call.
