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

This section provides the following information:

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

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

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

* card_accountNumber-set this field to the payment network token value.
* card_expirationMonth-set this field to the payment network token expiration month value.
* card_expirationYear-set this field to the payment network token expiration year value.
* ccAuthService_commerceIndicator- set this field to `spa`.
* ccAuthService_networkTokenCryptogram-set this field to the network token cryptogram.
* paymentNetworkToken_transactionType-set this field to `1`.
* paymentSolution-set this field to `008`.
* ucaf_authenticationData--set this field to the 3-D Secure cryptogram of the payment network token.
* ucaf_collectionIndicator-set this field to `2`.

Example: Merchant Decryption with Mastercard Using the Simple Order API {#samsungpay-auth-merdecrypt-ex-mc-so}
==============================================================================================================

Authorization Request

```
&lt;requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.121"&gt;
    &lt;merchantID&gt;demomerchant&lt;/merchantID&gt;
    &lt;merchantReferenceCode&gt;demorefnum&lt;/merchantReferenceCode&gt;
    &lt;billTo&gt;
        &lt;firstName&gt;James&lt;/firstName&gt;
        &lt;lastName&gt;Smith&lt;/lastName&gt;
        &lt;street1&gt;1295 Charleston Road&lt;/street1&gt;
        &lt;city&gt;Test City&lt;/city&gt;
        &lt;state&gt;CA&lt;/state&gt;
        &lt;postalCode&gt;99999&lt;/postalCode&gt;
        &lt;country&gt;US&lt;/country&gt;
        &lt;email&gt;demo@example.com&lt;/email&gt;
    &lt;/billTo&gt;
    &lt;purchaseTotals&gt;
        &lt;currency&gt;USD&lt;/currency&gt;
        &lt;grandTotalAmount&gt;5.00&lt;/grandTotalAmount&gt;
    &lt;/purchaseTotals&gt;
    &lt;card&gt;
        &lt;accountNumber&gt;xxxx55555555xxxx&lt;/accountNumber&gt;
        &lt;expirationMonth&gt;12&lt;/expirationMonth&gt;
        &lt;expirationYear&gt;2020&lt;/expirationYear&gt;
    &lt;/card&gt;
    &lt;ucaf&gt;
        &lt;authenticationData&gt;ABCDEFabcdefABCDscdef0987654321234567&lt;/authenticationData&gt;
        &lt;collectionIndicator&gt;2&lt;/collectionIndicator&gt;
    &lt;/ucaf&gt;
    &lt;ccAuthService run="true"&gt;
        &lt;commerceIndicator&gt;spa&lt;/commerceIndicator&gt;
    &lt;/ccAuthService&gt;
    &lt;paymentNetworkToken&gt;
        &lt;transactionType&gt;1&lt;/transactionType&gt;
    &lt;/paymentNetworkToken&gt;
    &lt;paymentSolution&gt;008&lt;/paymentSolution&gt;
&lt;/requestMessage&gt;    
```

Authorization Response

```
&lt;c:replyMessage&gt;
    &lt;c:merchantReferenceCode&gt;demorefnum&lt;/c:merchantReferenceCode&gt;
    &lt;c:requestID&gt;4465840340765000001541&lt;/c:requestID&gt;
    &lt;c:decision&gt;ACCEPT&lt;/c:decision&gt;
    &lt;c:reasonCode&gt;100&lt;/c:reasonCode&gt;
    &lt;c:purchaseTotals&gt;
        &lt;c:currency&gt;USD&lt;/c:currency&gt;
    &lt;/c:purchaseTotals&gt;
    &lt;c:ccAuthReply&gt;
        &lt;c:reasonCode&gt;100&lt;/c:reasonCode&gt;
        &lt;c:amount&gt;5.00&lt;/c:amount&gt;
        &lt;c:authorizationCode&gt;888888&lt;/c:authorizationCode&gt;
        &lt;c:avsCode&gt;X&lt;/c:avsCode&gt;
        &lt;c:avsCodeRaw&gt;I1&lt;/c:avsCodeRaw&gt;
        &lt;c:authorizedDateTime&gt;2015-11-03T20:53:54Z&lt;/c:authorizedDateTime&gt;
        &lt;c:processorResponse&gt;100&lt;/c:processorResponse&gt;
        &lt;c:reconciliationID&gt;11267051CGJSMQDC&lt;/c:reconciliationID&gt;
    &lt;/c:ccAuthReply&gt;
&lt;/c:replyMessage&gt;
```

