Authorizing a Payment with JCB Using `Bank of America` Decryption Method {#samsungpay-auth-cybs-jcb-intro}
==========================================================================================================

This section provides the following information:

* [Required Fields for Authorizing a Payment Using JCB and the Bank of America Decryption Method](/docs/bofa/en-us/samsung-pay/developer/gpx/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-cybs-jcb-intro/samsungpay-auth-cybsdecypt-jcb-mandatory.md "")
* [Authorizing a Payment](/docs/bofa/en-us/samsung-pay/developer/gpx/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-cybs-jcb-intro/samsungpay-auth-procedure.md "")
* [Example: Bank of America Decryption with JCB Using the REST API](/docs/bofa/en-us/samsung-pay/developer/gpx/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-cybs-jcb-intro/samsungpay-auth-cybsdecrypt-ex-jcb-rest.md "")
  {#samsungpay-auth-cybs-jcb-intro_ul_xb4_psp_npb}

Required Fields for Authorizing a Payment Using JCB and the `Bank of America` Decryption Method {#samsungpay-auth-cybsdecypt-jcb-mandatory}
===========================================================================================================================================

The following fields are required when submitting an authorization request using the `Bank of America` decryption method:

* descriptor-set this field under the fluidData object to `RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=`.
* paymentInformation.fluidData.value-set this field to the Base64-encoded value obtained from the paymentData property of the PKPaymentToken object.
* processingInformation.paymentSolution-set this field to `008`.

Authorizing a Payment {#samsung-auth-procedure}
===============================================

1. Send the service request to `https://api.merchant-services.bankofamerica.com``/pts/v2/payments`.
2. Include the required fields in the request. {#samsung-auth-procedure_auth-s2-reqfields}
3. Include optional fields in the request as needed.{#samsung-auth-procedure_auth-s3-optfields}
4. Check the response message to make sure that the request was successful. A 200-level HTTP response code indicates success. For information about response codes, see [Transaction Response Codes](https://developer.merchant.services.bankofamerica.com/api/reference/response-codes.md "").

Example: `Bank of America` Decryption with JCB Using the REST API {#samsungpay-auth-cybsdecrypt-ex-jcb-rest}
============================================================================================================

Authorization Request

```
{
    "processingInformation": {
        "paymentSolution": "008"
    },
    "consumerAuthenticationInformation": {
        "cavv": "EHuWW9PiBkWvqE5juRwDzAUFBAk=",
        "eciRaw": "05"
    },
    "paymentInformation": {
        "tokenizedCard": {
            "number": "xxxx55555555xxxx",
            "expirationMonth": "12",
            "expirationYear": "2031",
            "transactionType": "1",
            "type": "007"
        }
    },
    "billTo": {
        "firstName": "Jane",
        "lastName": "Smith",
         "address1": "123 Main Street",
         "address2": "Suite 12345",
         "locality": "Small Town",
         "administrativeArea": "CA",
         "postalCode": "98765",
         "country": "US",
         "email": "js@example.com",
         "phoneNumber": "9999999999"
      },
      "orderInformation": {
         "amountDetails": {
             "currency": "USD",
             "totalAmount": "100.00"
         }
      }
}
```

Authorization Response

```
{
    "clientReferenceInformation": {
        "code": "ref123"
    },
    "orderInformation": {
        "amountDetails": {
            "currency": "USD",
            "authorizedAmount": "100.00"
        }
    },
    "processingInformation": {
        "reconciliationID": "15356268CR2XF23X"
    },
    "processorInformation": {
        "approvalCode": "888888",
        "responseCode": "100",
        "paymentSolution": "008",
        "avs": {
            "codeRaw": "I1"
        }
    }  
}    
```

