Skip to content

Instantly share code, notes, and snippets.

@judgej
Last active October 10, 2016 13:43
Show Gist options
  • Save judgej/769db5a98126285fb67438ee6a5c7aa0 to your computer and use it in GitHub Desktop.
Save judgej/769db5a98126285fb67438ee6a5c7aa0 to your computer and use it in GitHub Desktop.

These are the four valid combinations of fields that make up a card payment type. Both reusable/save flags default to FALSE, so setting the field to "false" or leaving it blank are equivalent:

card-identifier session-key reusable save notes
first-use string string FALSE TRUE Card tokenised on the front end; saved as reusable after transaction.
first-use string string FALSE FALSE Card tokenised on the front end; not reusable after transaction.
second-use string n/a TRUE FALSE Reusing a saved card; no CVV checks.
second-use string string TRUE FALSE Reusing a saved card; with CVV checks.

The first-use string is the card identifier used for the first time. second-use is the same card identifier stored and used again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment