This disclosure relates to mobile payment processing using a mobile device.
In a conventional point-of-sale electronic credit card transaction, the transaction is authorized and captured over a network connection. In the authorization stage, a physical credit card with a magnetic stripe is swiped through a merchant's magnetic card reader, e.g., as part of a point-of-sale device. A payment request is sent electronically from the magnetic card reader to a credit card processor. The credit card processor routes the payment request to a card network, e.g., Visa or Mastercard, which in turn routes the payment request to the card issuer, e.g., a bank. Assuming the card issuer approves the transaction, the approval is then routed back to the merchant. In the capture stage, the approved transaction is again routed from the merchant to the credit card processor, card network and card issuer, and the payment request can include the cardholder's signature (if appropriate). The capture stage can trigger the financial transaction between the card issuer and the merchant, and optionally creates a receipt. There can also be other entities, e.g., the card acquirer, in the route of the transaction. Debit card transactions have a different routing, but also require swiping of the card.
Occasionally, network problems, such as network unavailability or network latency, interfere with routing of the payment request to the card issuer. For example, when the credit card processor receives a payment request from a merchant but there is no network connection to the card network, the credit card processor can reject the transaction because of the network issues. The merchant is notified of the rejection and can try to process transactions later when the network issues are resolved.
Card issuers and card networks may occasionally experience network issues and therefore may not be constantly available for payment processing. A payment processor can temporarily store transaction data and process the transaction data at a subsequent time. On the one hand, it would be desirable for the payment processor to store the transaction data in multiple locations, e.g., for ease of transaction processing or to guard against the possibility of server failure. On the other hand, there are stringent regulations on the storage of credit card numbers.
The payment processor can encrypt and store the transaction data in multiple distinct servers. The payment processor can determine whether the network issues are resolved so that the transaction data can be processed. If the network issues are resolved, the payment processor can retrieve the stored transaction data from the servers, decrypt the stored transaction data using a decryption key, and submit the transaction data for processing. Upon receiving an indication of the processing, the payment processor can then delete the decryption key and purge the stored transaction data from the servers.
In one aspect, a method of processing a payment transaction includes receiving transaction data for the payment transaction, where the transaction data includes at least card track data; encrypting the transaction data at the data processing apparatus using an encryption key of a cryptographic key pair to generate encrypted transaction data, where the cryptographic key pair includes the encryption key and a decryption key; storing a plurality of copies of the encrypted transaction data in a plurality of storage devices; receiving an instruction to submit the transaction data for processing; decrypting the encrypted transaction data using the decryption key; and submitting the transaction data for processing by an issuer.
Implementations can include one or more of the following. Receiving, from the issuer, an indication the encrypted transaction data has been processed; and in response to receiving the indication, deleting the decryption key. Purging the encrypted transaction data from the data processing apparatus. Identify transaction data that is encrypted by the encryption key; determining the encryption key is not being used to encrypt new transactions; determining the transaction data has been processed by the issuer; decrypting the transaction data using the decryption key; deleting the decryption key; generating a new cryptographic key pair, where the new cryptographic key pair includes a new encryption key and a new decryption key; and encrypting the decrypted transaction data using the new encryption key. Prior to the encrypting, generating the cryptographic key pair. The transaction data includes data stored on a magnetic stripe of a card. The transaction data includes data from a plurality of transactions. The cryptographic key pair expires within a period of time. The instruction is received periodically until the data processing apparatus receives the indication from the issuer. Each storage device is in a distinct geographic location. The decryption key is stored in a hardware security module.
Advantages may include one or more of the following. When there is a network connection problem, a payment processor can securely store transaction data for future processing. The transaction data is stored in distinct external servers, which can provide redundancy. In addition, the payment processor can satisfy regulatory requirements to destroy approved transaction data by rendering the transaction data unrecoverable. Moreover, the credit card processor can approve a transaction despite not having received approval from the card issuer. In this case, from a customer and a merchant's perspectives, the payment processor approved the transaction and both the customer and the merchant are unaffected by the network issues. Therefore, both experience a more satisfactory buying and selling experience.
Like reference numbers and designations in the various drawings indicate like elements.
A payment processor operates a payment service system 108. The merchant device communicates with the payment service system 108 using the network 106. The payment service system 108 includes one or more servers 112, at least some of which can handle secure transactions (e.g., a secure server), to processes all transactions with the merchant device 104. In general, servers 112 can store public merchant information such as the merchant's address or phone number. The servers 112 also handle secure information such as credit card numbers, debit card numbers, bank accounts 114, user accounts, user identifying information or other sensitive information.
The payment service system 108 can determine whether to store and forward a transaction sent by the merchant device 104 and how to process stored transactions. Storing and forwarding a transaction is described further below in reference to
The payment service system 108 can communicate electronically with a card payment network 116, e.g., Visa, Mastercard, or the like. The payment service system 108 can communicate with a computer system 116 of a card payment network, e.g., Visa or MasterCard. The payment service system 108 can communicate with a computer system 116 over the same network 106 used to communicate with the merchant device 104, or over a different network. The computer system 116 of the card payment network can communicate in turn with a computer system 118 of a card issuer, e.g., a bank. There can also be computer systems of other entities, e.g., the card acquirer, between the payment service system 108 and the card issuer.
Eventually, in order to receive funds from the transaction, the merchant will need to enter financial account information into the payment service system sufficient to receive funds. For example, in the case of a bank account, the merchant can enter the bank account number and routing number. The merchant's financial account can also be associated with a credit card account or another third party financial account. In addition, in some implementations, if the merchant has not entered the financial account information, the payment processor can hold the received funds until the financial account information is provided.
The processing server 202 includes a storing determination system 214. The storing determination system 214 can execute when a network connection problem occurs between among the system 216, a card issuer, or a card network, e.g., a broken network connection or excessive network latency. The storing determination system 214 determines whether to store the transaction data 212 for future processing based on numerous risk factors, e.g., seller type, buyer type, or transaction type. If the storing determination system 214 determines not to store the transaction data 212, the system 216 can respond to the merchant device that the transaction is rejected. If the storing determination system 214 determines to store the transaction data 212, the processing server 202 can securely store the transaction data 212 in a process described further below in reference to
If the processing server 202 decides to store the transaction data, the processing server 202 can send a transaction approval to both of the customer's and merchant's mobile devices. By approving the transaction, the operator of the system 216 assumes the risk that the transaction will not be approved, e.g., by a card issuer, in the future. In particular, the system 216 can pay the merchant for the amount of the stored transaction. If the transaction is eventually approved, then the operator of the system 216 will be reimbursed by the card issuer. However, if the transaction is eventually declined, the operator of the system 216 will need to cover, i.e., pay for, the transaction.
Before storing one or more transactions, the processing server 202 generates a cryptographic key pair to be used during the storing. In some implementations, the processing server 202 requests an intermediary server, e.g., having a hardware security module, to generate the cryptographic key pair. The cryptographic key pair can be generated using the Rivest, Shamir, and Adleman (RSA) algorithm. In some implementations, the cryptographic key pair includes a public encryption key and a private decryption key. The keys can be short lived, e.g., have a lifespan of an hour, and can be used until they are discarded. In some implementations, keys are generated every few minutes. The encryption key can be stored on the processing server 202 while the decryption key can be permanently stored on a hardware security module 204. The hardware security module 204 can be a physical hardware apparatus coupled to and configured to communicate with the processing server 202. Alternatively, the hardware security module 204 can be a component of another intermediary server that communicates with the processing server 202. In some implementations, both the encryption and the decryption key are stored in the hardware security module 204. In some other implementations, the processing server 202 requests a symmetric key to be generated. The symmetric key can serve as either the encryption or decryption key, and the symmetric key can be stored in the hardware security module 204.
The processing server 202 can store the transaction data 212 in storage devices at multiple distinct data center servers, e.g., first, second, and third data center servers 206, 208, 210. The different data center servers can be located in the same data center, or the data center servers can be located in distinct geographical locations, e.g., different states or countries. By ensuring the transaction data 212 is located at multiple servers, the system 216 provides redundancy in case one data center server becomes unavailable, e.g., a server crashes or becomes unavailable due to network connection problems.
After storing the transaction data 212, the processing server 202 can forward the transaction 218 to a card network or a card issuer when the one or more network issues are resolved. This will be described further below in reference to
The system receives transaction data (step 302). The transaction data can be sent by a merchant's mobile device. The transaction data can represent one transaction between a customer and a merchant and includes data necessary to obtain an authorization. For example, the transaction data can include data stored on a magnetic stripe of a card, e.g., name, card number, expiration date, CVV1, or CVV2. The transaction data can also include a merchant identifier, a transaction amount, or a transaction date.
The transaction data can also be received from a transaction database. The transaction database can include one or more transactions that are determined to be stored, e.g., by a storing determining system 214. In some implementations, the transaction data includes multiple transactions to be stored, e.g., originating from one or more merchant devices.
The system encrypts the transaction data (step 304) using an encryption key from a cryptographic key pair, as described above in reference to
The system stores copies of the encrypted transaction data at multiple servers (step 306). For example, the processing server 202 sends the encrypted transaction data to storage devices, e.g., databases, located at different multiple data centers. The processing server 202 can track the location of the transaction data in an internal database.
The system receives an instruction to process the transaction (step 308). The instruction can specify one or more transactions to forward. For example, the instruction can identify stored transactions to be batched and sent to the card issuer and card network for processing, e.g., using a first-in-first-out queue. In some implementations, the instruction is created by a background process running on the processing server 202. The process can periodically attempt to connect to a card issuer or card network until there are no more stored transactions in the system. For example, the process can ping the card issuer or the card network every few minutes or through an exponential backoff algorithm. If the process successfully connects to the card issuer or the card network within a predetermined amount of time, the storing determination system 214 can generate the instruction for processing by the processing server 202. In some other implementations, the card issuer or the card network generates and sends the instruction to the system when they are ready to process transactions again.
When the system receives the instruction, the system retrieves and decrypts the transaction data (step 310). Based on the instruction, the processing server 202 can retrieve the transaction data from an available data center. As described above, the decryption key can be permanently stored on the hardware security module 204. To decrypt, the processing server 202 can send the encrypted transaction data to the hardware security module 204. The hardware security module 204 decrypts the transaction data using the decryption key and sends the decrypted transaction data to the processing server 202. In some implementations, the encrypting and decrypting occur on separate servers.
The system then submits the decrypted transaction data for authorization (step 312). The processing server 202 can send the transaction data to the appropriate card network and card issuer, both of which can process the transaction data. The card network can respond to the processing server 202 with an indication that the transaction data has been processed, e.g., either an authorization or a rejection for each of the one or more transactions in the transaction data.
If the system receives the indication, the system can delete the decryption key, e.g., from the hardware security module 204. In some implementations, the system deletes the decryption key after confirming there are no pending transactions, e.g., by analyzing entries in an internal database. Without the decryption key, the transaction data remains encrypted and cannot be decrypted. Therefore, even though the transaction data can be located on multiple data center servers, the transaction data is no longer sensitive. In some implementations, the processing server 202 occasionally purges the encrypted transaction data from the data centers, e.g., after a predetermined amount of time.
If the key pair is not being used, the system identifies transaction data that was encrypted using the encryption key of the key pair (step 406). The system retrieves the transaction data from one or more of the appropriate data center servers and decrypts the transaction data as described above in reference to
Embodiments of the subject matter and the operations described in this specification can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, encoded on a non-transitory computer storage medium for execution by, or to control the operation of, data processing apparatus. Alternatively or in addition, the program instructions can be encoded on an artificially-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus. A computer storage medium can be, or be included in, a computer-readable storage device, a computer-readable storage substrate, a random or serial access memory array or device, or a combination of one or more of them. Moreover, while a computer storage medium is not a propagated signal, a computer storage medium can be a source or destination of computer program instructions encoded in an artificially-generated propagated signal. The computer storage medium can also be, or be included in, one or more separate physical components or media (e.g., multiple CDs, disks, or other storage devices).
The operations described in this specification can be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources.
The term “data processing apparatus” encompasses all kinds of apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, a system on a chip, or multiple ones, or combinations, of the foregoing The apparatus can include special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). The apparatus can also include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or a combination of one or more of them. The apparatus and execution environment can realize various different computing model infrastructures, such as web services, distributed computing and grid computing infrastructures.
A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, object, or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language resource), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.
The processes and logic flows described in this specification can be performed by one or more programmable processors executing one or more computer programs to perform actions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for performing actions in accordance with instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, e.g., a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name just a few. Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
To provide for interaction with a user, embodiments of the subject matter described in this specification can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending resources to and receiving resources from a device that is used by the user; for example, by sending web pages to a web browser on a user's client device in response to requests received from the web browser.
Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the subject matter described in this specification, or any combination of one or more such back-end, middleware, or front-end components.
The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server transmits data (e.g., an HTML page) to a client device (e.g., for purposes of displaying data to and receiving user input from a user interacting with the client device). Data generated at the client device (e.g., a result of the user interaction) can be received from the client device at the server.
A system of one or more computers can be configured to perform particular operations or actions by virtue of having software, firmware, hardware, or a combination of them installed on the system that in operation causes or cause the system to perform the actions. One or more computer programs can be configured to perform particular operations or actions by virtue of including instructions that, when executed by data processing apparatus, cause the apparatus to perform the actions.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any inventions or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing may be advantageous.
This application is a non-provisional of and claims priority to U.S. patent application Ser. No. 13/736,447, filed Jan. 8, 2013, and U.S. Provisional Patent Application No. 61/733,862, filed on Dec. 5, 2012, the entire contents of which are hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
61733862 | Dec 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13736447 | Jan 2013 | US |
Child | 16936381 | US |