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

This section provides the following information:

* [Required Fields for Authorizing a Payment Using JCB and the Merchant Decryption Method](/docs/vas/en-us/samsung-pay/developer/ctv/so/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-merchant-jcb-intro/samsungpay-auth-merdecypt-jcb-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 JCB Using the Simple Order API](/docs/vas/en-us/samsung-pay/developer/ctv/so/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-merchant-jcb-intro/samsungpay-auth-merdecrypt-ex-jcb-so.md "")
  {#samsungpay-auth-merchant-jcb-intro_ul_pcj_krp_npb}

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

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

* ccAuthService_cavv-set this field to the 3-D Secure cryptogram of the payment network token.
* 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_eciRaw-set this field to the ECI value contained in the Samsung Pay reply message.
* ccAuthService_networkTokenCryptogram-set this field to the network token cryptogram.
* paymentNetworkToken_transactionType-set this field to `1`.
* paymentSolution-set this field to `008`.

Example: Merchant Decryption with JCB Using the Simple Order API {#samsungpay-auth-merdecrypt-ex-jcb-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;Jane&lt;/firstName&gt;
        &lt;lastName&gt;Smith&lt;/lastName&gt;
        &lt;street1&gt;123 Main Street&lt;/street1&gt;
        &lt;city&gt;Small Town&lt;/city&gt;
        &lt;state&gt;CA&lt;/state&gt;
        &lt;postalCode&gt;98765&lt;/postalCode&gt;
        &lt;country&gt;US&lt;/country&gt;
        &lt;email&gt;jsmith@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;xxxx11111111xxxx&lt;/accountNumber&gt;
        &lt;expirationMonth&gt;12&lt;/expirationMonth&gt;
        &lt;expirationYear&gt;2020&lt;/expirationYear&gt;
        &lt;cvNumber&gt;123&lt;/cvNumber&gt;
        &lt;cardType&gt;007&lt;/cardType&gt;
    &lt;/card&gt;
    &lt;ccAuthService run="true"&gt;
        &lt;cavv&gt;ABCDEFabcdefABCDEFabcdef0987654321234567&lt;/cavv&gt;
        &lt;eciRaw&gt;5&lt;/eciRaw&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;
```

NVP Request

```
merchantID=demomerchant
merchantReferenceCode=demorefnum
billTo_firstName=Jane
billTo_lastName=Smith
billTo_street1=123 Main Street
billTo_city=Small Town
billTo_state=CA
billTo_postalCode=98765
billTo_country=US
billTo_email=jsmith@example.com
purchaseTotals_currency=USD
purchastTotals_grandTotalAmount=5.00
card_accountNumber=xxxx00202036xxxx
card_expirationYear=2020
card_cvnNumber=123
cardType=007
ccAuthService_cavv=ABCDEFabcdefABCDEFabcdef0987654321234567
ccAuthService_eciRaw=5
paymentNetworkToken_requestorID=987654321plokijuhygtfrdeswa 
paymentNetworkToken_transactionType=1
paymentSolution=008
```

NVP Response

```
merchantReferenceCode=demorefnum
requestID=4465840340765000001541
decision=accept
reasonCode=100
requestToken=Ahj/7wSR5C/4Icd2fdAKakGLadfg5535r/ghx3Z90AoBj3u
purchaseTotals_currency=USD
ccAuthReply_reasonCode=100
ccAuthReply_amount=5.00
ccAuthReply_authorizationCode=888888
ccAuthReply_avsCode=X
ccAuthReply_avsCodeRaw=I1
ccAuthReply_authorizedDateTime=2015-11-03T20:53:54Z
ccAuthReply_processorResponse=100
ccAuthReply_reconciliationID=11267051CGJSMQDC
```

