On This Page
Use Case 3: Edit a Credit 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
Figure:
Edit a Credit Card Flow
- The merchant rendersMicroform Integrationfields for the CVV.
- You render non-sensitive fields for card expiration month and year.
- When the customer submits the form, you callmicroform.createToken(). You can also include the card expiration month and year but it is not required.
Transient Token Contents
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
Cybersource
APIs and create a permanent token in Token Management Service
(TMS
).Example: Edit a Card
Transient Token Response
eyJraWQiOiIwMHdrakszeUozOWtCbnNLQ0FZSFZqYVJjem9DTU1JMCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJGbGV4LzAwIiwiZXhwIjoxNzc0OTUzNTcyLCJ0eXBlIjoibWYtMi4xLjAiLCJpYXQiOjE3NzQ5NTI2NzIsImp0aSI6IjFENUpJSlU1N1VSM1Y2N1pXMEhDOUIzU0Q0UDhDM1MwVkk5UExTUjRMMDYzRTRSMTdWTlk2OUNCQTQ2NDg1N0IiLCJjb250ZW50Ijp7InBheW1lbnRJbmZvcm1hdGlvbiI6eyJjYXJkIjp7ImV4cGlyYXRpb25ZZWFyIjp7InZhbHVlIjoiMjAyNyJ9LCJzZWN1cml0eUNvZGUiOnt9LCJleHBpcmF0aW9uTW9udGgiOnsidmFsdWUiOiIxMiJ9fX19fQ.blbO5u3FiXeXBbPDAPHQ9ucVNlZMd4cwii8AvVnb9-DFbqgx7Wg5AfcpLu1vd1ivGSgSCE0w5cqELzIw0GcdtPoUprYeHd3fCepCo4kZeZYYI7WMDFKSTklCIZoBVCsAQsiTxr_cDrCD9WbHn9x_q5706SZ2sNaTs3P4OOSkpOyHiCFCWoi_JV3mm1XRncbnnbPrlWfnnz0vuhyGAan3KO8l93qnXAVQyqNMg7D-ku89RHoRZPI1iauBncfBO6vadnWLeQCBkJRGtWFkXCNfCi5XztiuAq9JiQODscKJ6kK4XmQzUnmxIy33LVnOWk9tBHf6JLZuBTqMEUrzT94G5Q
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" } } } } }