PBOC e-Wallet composite transactions

Source: Internet
Author: User

[From]: http://smarticcard.blog.sohu.com/138982273.html

 

The ninth volume in the pboc2.0 Specification defines the e-Wallet extension application guide, which contains the content of gray locks and composite transactions. The application was extended based on the original e-wallet. The gray lock application mainly inherits the concept and process of Sinopec oil card specifications. The compound transaction is mainly oriented to the traffic field, that is, it can meet the needs of the highway toll-free (ETC) system, but also meet the application needs of urban public transportation.

 

For e-wallets that support compound transactions, the main increase is compound consumption transactions. The other normal storage and general consumption transactions are consistent with the original electronic wallet applications.

 

For composite consumption transactions, the initialization of composite consumption transactions init for CAPP purchase, updating of the composite transaction special file update CAPP cache, and deduction of debit for CAPP purchase in composite consumption transactions must be completed in three steps; the general wallet purchase transaction has only two steps: the consumption transaction initializes init for purchase and the consumption deduction debit for purchase.

 

From the data integrity point of view, after completing the composite consumption transaction, key data such as wallet balance, special compound transaction file content, transaction details, offline transaction serial number, Mac and tac used for transaction verification must be updated simultaneously.

 

From the transaction process, the transaction type of composite consumption transaction is "09". In the process of compound transaction initialization and compound transaction deduction, the process of key calculation, Mac and tac checking, and the required data format are almost the same as that of General wallet consumption.

 

From the perspective of switching the transaction state machine, only after the composite transaction initialization can the composite transaction special file be updated, and only after the composite transaction special file is updated, in order to further execute the compound consumption transaction deduction command.

 

Specialized compound Transaction files are mainly used to record information about entrances and exits. For example, when a vehicle enters a highway entry, the Highway Toll System can record the entry information through a composite transaction. When a vehicle leaves the highway, you can use the recorded entry information to calculate the charge. For the segmented billing mode in the public transport charging system, it is usually used to record the information of the boarding site through the special file of the compound transaction when you get on the bus card, when you get off the bus and swipe the card, the fare is calculated based on the recorded bus station and then deducted from the compound consumption transaction.

 

As we have mentioned earlier, the update of Special Composite Transaction files can only be modified after initialization and only after a complete composite transaction is completed. Therefore, the common practice is: when a high-speed entry or passenger gets on the bus, the customer first performs a compound consumption transaction with a consumption amount of 0, so as to correctly record the information of the entry or boarding site, then, a complete compound consumption transaction will be made based on the actual cost when the expressway exit or passengers get off the bus. This will enable the multipart charging function suitable for highway or public transportation.

 

Most of the non-contact CPU cards used in bus systems currently use this compound consumption transaction model.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.