Use a registered card

To display the cards registered for a customer on the payment page, you just have to fill in the id and label of the cards to display in storedCardData when calling Creates a payment session .

Example with a registered card

[...]
"storedCardData": [
    {
      "Id": "406f8b08096f49dba6ddaf472f7ea5e5",
      "Label": "test"
    }
  ] 
[...]

Example with several registered cards

[...]
"storedCardData": [
    {
      "Id": "406f8b08096f49dba6ddaf472f7ea5e5",
      "Label": "test"
    },
    {
      "Id": "406f8b08096f49dba6ddaf472f7ea5e5",
      "Label": "testbis"
    }
  ] 
[...]