A method for secure application-based participation in a payment card transaction authorization process, the method comprising:
- at a mobile device, executing an application in an operating system of the mobile device;
- generating, by a remote computer system, a first non-permanent cryptographic key based on an issuer master key;
- associating, by the remote computer system, the first non-permanent cryptographic key with an account;
- receiving, by the application over a wireless network from the remote computer system, a first set of data associated with the account that has an associated digital credential, the first set of data comprising the first non-permanent cryptographic key associated with the account and an account identifier for the account;
- locally storing the first non-permanent cryptographic key at the mobile device as a local cryptographic key associated with the account;
- receiving, by the application and from a point-of-sale (POS) terminal, unpredictable data;
- implementing, by the POS terminal, an interrogation between the POS terminal and the mobile device defined by a card specification that indicates a receipt, by the POS terminal, of an expected cryptogram calculated using the unpredictable data passed to the mobile device from the POS terminal;
- receiving, by the application, at least one POS command communication sent by the POS terminal over a near field communication (NFC) communication channel, wherein the at least one POS command communication comprises a request for digital credential data to authorize a transaction against the account, the request for digital credential data including a cryptogram request;
- generating, by the application, a response cryptogram (1) using the local cryptographic key associated with the account for encryption, (2) without using a permanent cryptographic key for the digital credential, and (3) without using the unpredictable data passed to the mobile device from the POS terminal;
- sending a device response communication from the mobile device to an electronic reader of the POS terminal through the NFC communication channel, the device response communication comprising an application data protocol unit containing the response cryptogram and the account identifier for the account;
- receiving, by the remote computer system, an authorization request to authorize the transaction from the POS terminal, the authorization request comprising authorization data, wherein the authorization data comprises the response cryptogram and the account identifier;
- determining, by the remote computer system, a current non-permanent cryptographic key associated with the account using the account identifier;
- calculating, by the remote computer system, a calculated cryptogram using the current non-permanent cryptographic key associated with the account;
- verifying, by the remote computer system, a correctness of the response cryptogram by comparing the calculated cryptogram with the response cryptogram;
- sending, by the remote computer system, an authorization response to the POS terminal, wherein the authorization response comprises data determined, at least in part, by the verifying the correctness of the response cryptogram;
- generating, by the remote computer system, a second non-permanent cryptographic key based on the issuer master key, the second non-permanent cryptographic key different than the first non-permanent cryptographic key;
- associating, by the remote computer system, the second non-permanent cryptographic key with the account;
- receiving, by the application over the wireless network from the remote computer system, a second set of data associated with the account, the second set of data comprising the second non-permanent cryptographic key associated with the account and the account identifier for the account;
- locally storing the second non-permanent cryptographic key at the mobile device as the local cryptographic key associated with the account;
- and
- generating, by the application, another response cryptogram using the locally stored second non-permanent cryptographic key.