Authorizing a Payment with Visa Using Merchant Decryption Method {#samsungpay-auth-merchant-visa-intro}
=======================================================================================================

This section provides the following information:

* [Required Fields for Authorizing a Payment Using Visa and the Merchant Decryption Method](/docs/cybs/en-us/samsung-pay/developer/citimb/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-merchant-visa-intro/samsungpay-auth-merdecypt-visa-mandatory.md "")
* [Authorizing a Payment](/docs/cybs/en-us/samsung-pay/developer/citimb/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-cybs-mc-intro/samsungpay-auth-procedure.md "")
* [Example: Merchant Decryption with Visa Using the REST API](/docs/cybs/en-us/samsung-pay/developer/citimb/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-merchant-visa-intro/samsungpay-auth-merdecrypt-ex-visa-rest.md "")
  {#samsungpay-auth-merchant-visa-intro_ul_pcj_krp_npb}

Required Fields for Authorizing a Payment Using Visa and the Merchant Decryption Method {#samsungpay-auth-merdecypt-visa-mandatory}
===================================================================================================================================

The following fields are required when submitting an authorization request using the Merchant decryption method:

* consumerAuthenticationInformation.cavv-set this field to the 3-D Secure cryptogram of the payment network token.
* paymentInformation.card.number-set this field to the payment network token value.
* paymentInformation.card.expirationMonth/ paymentInformation.tokenizedCard.expirationMonth-set this field to the payment network token expiration month value.
* paymentInformation.card.expirationYear/ paymentInformation.tokenizedCard.expirationYear-set this field to the payment network token expiration year value.
* consumerAuthenticationInformation.eciRaw-for JCB transactions, set this field to the ECI value contained in the Samsung Pay reply message.
* processingInformation.commerceIndicator-set this field to `internet`.
* paymentinformation.tokenizedCard.cryptogram-set this field to the network token cryptogram.
* paymentInformation.tokenizedCard.transactionType-set this field to `1`.
* processingInformation.paymentSolution-set this field to `008`.

Related Information {#samsungpay-auth-merdecypt-visa-mandatory_section_abb_khn_b1c}
-----------------------------------------------------------------------------------

[REST API Field Reference Guide](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/rest-api-fields-intro.md "")

Example: Merchant Decryption with Visa Using the REST API {#samsungpay-auth-merdecrypt-ex-visa-rest}
====================================================================================================

Authorization Request

```
{
    "clientReferenceInformation": {
        "code": "demorefnum"
    },
    "consumerAuthenticationInformation": {
        "cavv": "ABCDEFabcdefABCDEFabcdef0987654321234567"
    },
    "processingInformation": {
        "commerceIndicator": "internet",
        "paymentSolution": "008"
    },
    "paymentInformation": {
        "tokenizedCard": {
            "expirationMonth": "12",
            "expirationYear": "2021",
            "number": "xxxx100000000xxxx",
            "transactionType": "1"
        }
    },
    "billTo": {
        "firstName": "James",
        "lastName": "Smith",
         "address1": "111 S. Division St.",
         "address2": "Suite 123",
         "locality": "Ann Arbor",
         "administrativeArea": "MI",
         "postalCode": "48104-2201",
         "country": "US",
         "email": "demo@example.com",
         "phoneNumber": "9999999999"
      },
      "orderInformation": {
         "amountDetails": {
             "currency": "USD",
             "totalAmount": "100.00"
         }
      }
}
```

Authorization Response

```
{
    "clientReferenceInformation": {
        "code": "demorefnum"
    },
    "orderInformation": {
        "amountDetails": {
            "currency": "USD",
            "authorizedAmount": "100.00"
        }
    },
    "processingInformation": {
        "reconciliationID": "13209254CGJSMQCQ"
    },
    "processorInformation": {
        "approvalCode": "888888",
        "responseCode": "100",
        "avs": {
            "code": "I1"
        }
    },
    "submitTimeUtc": "2015-11-03T205035Z"
    }    
}    
```

