Use Case 3: Edit a Credit Card {#micro-use-case-add-card}
=========================================================

In this use case, the customer edits an existing saved card. This use case is most common when the customer must update the expiration date and re‑enter the card verification value (CVV).

Overview {#micro-use-case-add-card_section_p4d_tjg_njc}
-------------------------------------------------------

#### Figure: {#micro-use-case-add-card_fig_ixz_zjg_njc}

Edit a Credit Card Flow ![](/content/dam/documentation/cybs/en-us/topics/payments-processing/card-processing/microform-v2/images/mf-usecase-editcc-700x330.svg/jcr:content/renditions/original)
1. The merchant renders `Microform Integration` fields for the CVV.
2. You render non-sensitive fields for card expiration month and year.
3. When the customer submits the form, you call `microform.createToken()`. You can also include the card expiration month and year but it is not required.
   {#micro-use-case-add-card_ol_idg_5lg_njc}

Transient Token Contents {#micro-use-case-add-card_section_pld_hkg_njc}
-----------------------------------------------------------------------

The transient token is JWT that includes the CVV. If the card expiration month and year are included in `microform.createToken()`, they are returned in clear text in the decoded transient token payload. In this use case, the PAN is not collected.  
After you receive the transient token, you can perform an authorization using `Visa Acceptance Solutions` APIs and create a permanent token in `Token Management Service` (`TMS`).

Example: Edit a Card {#uc-appendix-uc-auth-ex}
==============================================

Transient Token Response

```
eyJraWQiOiIwMHdrakszeUozOWtCbnNLQ0FZSFZqYVJjem9DTU1JMCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJGbGV4LzAwIiwiZXhwIjoxNzc0OTUzNTcyLCJ0eXBlIjoibWYtMi4xLjAiLCJpYXQiOjE3NzQ5NTI2NzIsImp0aSI6IjFENUpJSlU1N1VSM1Y2N1pXMEhDOUIzU0Q0UDhDM1MwVkk5UExTUjRMMDYzRTRSMTdWTlk2OUNCQTQ2NDg1N0IiLCJjb250ZW50Ijp7InBheW1lbnRJbmZvcm1hdGlvbiI6eyJjYXJkIjp7ImV4cGlyYXRpb25ZZWFyIjp7InZhbHVlIjoiMjAyNyJ9LCJzZWN1cml0eUNvZGUiOnt9LCJleHBpcmF0aW9uTW9udGgiOnsidmFsdWUiOiIxMiJ9fX19fQ.blbO5u3FiXeXBbPDAPHQ9ucVNlZMd4cwii8AvVnb9-DFbqgx7Wg5AfcpLu1vd1ivGSgSCE0w5cqELzIw0GcdtPoUprYeHd3fCepCo4kZeZYYI7WMDFKSTklCIZoBVCsAQsiTxr_cDrCD9WbHn9x_q5706SZ2sNaTs3P4OOSkpOyHiCFCWoi_JV3mm1XRncbnnbPrlWfnnz0vuhyGAan3KO8l93qnXAVQyqNMg7D-ku89RHoRZPI1iauBncfBO6vadnWLeQCBkJRGtWFkXCNfCi5XztiuAq9JiQODscKJ6kK4XmQzUnmxIy33LVnOWk9tBHf6JLZuBTqMEUrzT94G5Q
```

{#uc-appendix-uc-auth-ex_codeblock_f3r_4lg_njc}  
Decoded Transient Token

```
{
  "iss": "Flex/00",
  "exp": 1774953572,
  "type": "mf-2.1.0",
  "iat": 1774952672,
  "jti": "1D5JIJU57UR3V67ZW0HC9B3SD4P8C3S0VI9PLSR4L063E4R17VNY69CBA464857B",
  "content": {
    "paymentInformation": {
      "card": {
        "expirationYear": {
          "value": "2027"
        },
        "securityCode": {},
        "expirationMonth": {
          "value": "12"
        }
      }
    }
  }
}
```

{#uc-appendix-uc-auth-ex_codeblock_h3r_4lg_njc}
