mvallim / emv-qrcode

Java Based EMV QR Code Generator and Parser (MPM, CPM)
https://mvallim.github.io/emv-qrcode/
Apache License 2.0
95 stars 46 forks source link

CPM #20

Closed sloopsight closed 3 years ago

sloopsight commented 3 years ago

Hi, I am trying just wondering how I can read my credit card data to generate EMV QR code.
Also for QR Code transaction where I have to include amount in example it is not clear. Any help will be appreciated.

mvallim commented 3 years ago

Hi @sloopsight,

This whole specification of how the parties interact is specified in the Consumer-Presented Mode document.

In the examples presented, it is shown how to encode and decode information, remembering that it is a library that abstracts the process of encoding and decoding information.

The process in which the consumer generates the QR Code, the QR Code Reader forwards the information to the POI and at that moment more information is added to the QR Code that is sent to the Merchant through the entire bank flow until its return when the transaction is completed.

This can be seen on page. 11, 12, and 13 with an illustrative image of the flow, on the following pages it is detailed how each participant acts at each point.

If you have any more questions let me know.

Thanks,

sloopsight commented 3 years ago

I want to develop customer present mode as proof of concept from scratch any idea from where I can start.

mvallim commented 3 years ago

Hi @sloopsight,

            +--------------------------------------------------------------------+
            |                             Consumer                               |
            |  +------------+    +-----------------+    +---------------------+  |
            |  | create CPM | -> | encode toBase64 | -> | create image QRCode |  |
            |  +------------+    +-----------------+    +---------------------+  |
            +-------------------------------+------------------------------------+
                                            |
                                +-----------+-----------+
                                |  QRCode Image Reader  |
                                |   +--------------+    |
                                |   | decode image |    |
                                |   +--------------+    |
                                +-----------+-----------+
                                            |
+-------------------------------------------+------------------------------------------+
|                                          POI                                         |
|   +------------+    +--------------+    +------------------+    +-----------------+  |
|   | decode CPM | -> | validate CPM | -> | add informations | -> | encode toBase64 |  |
|   +------------+    +--------------+    +------------------+    +-----------------+  |
+-------------------------------------------+------------------------------------------+
                                            |
            +-------------------------------+-----------------------------+
            |                            Merchant                         |
            | +------------+    +--------------+    +------------------+  |
            | | decode CPM | -> | validate CPM | -> | add informations |  |
            | +------------+    +--------------+    +------------------+  |
            +-------------------------------+-----------------------------+
                                            |
                                       +----+-----+
                                       | Acquirer |
                                       +----+-----+
                                            |
                                   +--------+--------+
                                   | Payment Network |
                                   +--------+--------+
                                            |
                                        +---+----+
                                        | Issuer |
                                        +--------+
sloopsight commented 3 years ago

Thank you mvallim, Can u recommend some study material from where I can start EMV Book 3 or 4 ? You have written program for encoder decoder Now How I can read card from mobile phone how I can get access to Track 2 equivalent data from card. Do I have code POI or POI is a standard device available in market. I am new to this device based transaction I might sound kiddish but If you explain or guide me would be great help.

mvallim commented 3 years ago

Thank you mvallim, Can u recommend some study material from where I can start EMV Book 3 or 4 ? You have written program for encoder decoder Now How I can read card from mobile phone how I can get access to Track 2 equivalent data from card. Do I have code POI or POI is a standard device available in market. I am new to this device based transaction I might sound kiddish but If you explain or guide me would be great help.

Hi @sloopsight,

No problem, what you need in this case is the NFC (Near Field Communication) specification, from that point on you will be able to read the chip information and set up a CPM using that information.

Initially, there is some information here: https://en.wikipedia.org/wiki/Near-field_communication https://en.wikipedia.org/wiki/Contactless_smart_card https://www.emvco.com/emv-technologies/contactless/

This can better elucidate what you want to do.

Remembering that EMV and NFC are complementary technologies that allow secure contactless payments.

Thanks,

sloopsight commented 3 years ago

Hi @mvallim What about POI is this a standard device available in market or we have to build it.

mvallim commented 3 years ago

Hi @mvallim What about POI is this a standard device available in market or we have to build it.

Hi @sloopsight,

In the specification it clear, page 11,12 and 13 here

Thanks,

subhanshu-shukla commented 3 years ago

Who is poi vendor here company like pinelabs and ingenico we can develop it using andoid app?

mvallim commented 3 years ago

Who is poi vendor here company like pinelabs and ingenico we can develop it using andoid app?

"A point of interaction (POI) is a (hardware and/or software) component in point of sale equipment (e.g. a magnetic card reader) that enables a consumer to use a credit card to make a purchase at a retailer. The point of sale terminal might be attended or unattended.

The new generation of POI systems will be designed to allow devices other than credit cards to be used to make payments (e.g. mobile phones or PDAs), provided that the same high level of security is ensured by the equipment."

mvallim commented 3 years ago

Closing this issue for being without activity.