Authentication Types

To trigger the different authentication types submit them in the paymentDescriptor field using the key authenticationType and requiresAuthentication as true.

{
"paymentMethod": "MOCK",
"paymentDescriptor": "requiresAuthentication=true;authenticationType=REDIRECT,SCAN_CODE,MULTI_FACTOR",
  
//...

The mock processor will respond with the authenticationMethods and the parameters required to complete the payment process.

REDIRECT

You'll receive a requestUrl which allows for the simulation of successful or failed authorization.

REDIRECT mock processor

SCAN_CODE

You'll receive the codeType QR. Render the QR code and use the PPRO Mock Scanner on your mobile device to scan the QR and select the authorization outcome.

MULTI_FACTOR

No authentication details are returned for MULTI_FACTOR. Submit the verificationCode 123 to the authorization endpoint in to receive a successful authorization.

POST /v1/payment-charges/{paymentChargeId}/authorizations

{  
  "authenticationResult": {  
    "type": "MULTI_FACTOR",  
    "details: {  
      "verificationCode": "123"  
    }  
  }  
}

s