Authorizing a Payment with American Express Using Decryption Method {#samsungpay-auth-cybs-amex-intro}
======================================================================================================

This section provides the following information:

* [Required Fields for Authorizing a Payment Using American Express and the Decryption Method](/docs/vas/en-us/samsung-pay/developer/amexdirect/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-cybs-amex-intro/samsungpay-auth-cybsdecypt-amex-mandatory.md "")
* [Authorizing a Payment](/docs/vas/en-us/samsung-pay/developer/amexdirect/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-cybs-amex-intro/samsungpay-auth-procedure.md "")
* [Example: Decryption with American Express Using the REST API](/docs/vas/en-us/samsung-pay/developer/amexdirect/rest/samsungpay/samsungpay-services/samsungpay-auth-intro/samsungpay-auth-cybs-amex-intro/samsungpay-auth-cybsdecrypt-ex-amex-rest.md "")
  {#samsungpay-auth-cybs-amex-intro_ul_pcj_krp_npb}

Required Fields for Authorizing a Payment Using American Express and the Decryption Method {#samsungpay-auth-cybsdecypt-amex-mandatory}
=======================================================================================================================================

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

* descriptor-set this field under the fluidData object to `RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ=`.
* processingInformation.commerceIndicator-set this field to `aesk`.
* paymentInformation.fluidData.value
  * Set the field to the value that was returned from Samsung Pay in the *3ds.data* block as follows:
    * Retrieve the payment data from Samsung Pay in JSON Web Encryption (JWE) format.
    * Encode it in Base64.
    * Add the value to the paymentInformation.fluidData.value field.
* paymentInformation.tokenizedCard.transactionType-set this field to `1`.
* processingInformation.paymentSolution-set this field to `008`.

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

1. Send the service request to `/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 .

Example: Decryption with American Express Using the REST API {#samsungpay-auth-cybsdecrypt-ex-amex-rest}
========================================================================================================

Authorization Request

```
{
    "clientReferenceInformation": {
        "code": "demorefnum"
    },
    "processingInformation": {
        "paymentSolution": "008",
        "commerceIndicator": "aesk"
    },
    "paymentInformation": {
        "tokenizedCard": {
            "transactionType": "1",
            "type": "003"
        }
    },
    "fluidData": {
      "descriptor": "ABCDEFabcdefABCDEFabcdef0987654321234567",
      "value": "RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ="
    },
    "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"
        }
    },
    "paymentInformation": {
         "tokenizedCard": {
            "prefix": "593056",
            "suffix": "0842",
            "expirationMonth": "08",
            "expirationYear": "2021"
         }
    },
    "processingInformation": {
        "reconciliationID": "13209256CGJSMQCZ"
    },
    "processorInformation": {
        "approvalCode": "888888",
        "responseCode": "100",
        "avs": {
            "code": "I1"
        }
    },
    "submitTimeUtc": "2015-11-03T205202Z"
    }    
}    
```

