WO2022000766A1 - Transaction address locating system and method - Google Patents

Transaction address locating system and method Download PDF

Info

Publication number
WO2022000766A1
WO2022000766A1 PCT/CN2020/113495 CN2020113495W WO2022000766A1 WO 2022000766 A1 WO2022000766 A1 WO 2022000766A1 CN 2020113495 W CN2020113495 W CN 2020113495W WO 2022000766 A1 WO2022000766 A1 WO 2022000766A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
server
mobile terminal
data
mobile
Prior art date
Application number
PCT/CN2020/113495
Other languages
French (fr)
Chinese (zh)
Inventor
戴启军
陈烈
曾德炎
王思远
Original Assignee
拉卡拉支付股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 拉卡拉支付股份有限公司 filed Critical 拉卡拉支付股份有限公司
Publication of WO2022000766A1 publication Critical patent/WO2022000766A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present disclosure relates to the field of intelligent payment, in particular to a system and method for locating a transaction address.
  • the mainstream mPOS Mobile POS
  • the mainstream mPOS mobile POS
  • the mobile terminal obtains the positioning information of the mobile terminal through the Bluetooth connection between the Bluetooth chip in the POS and the mobile terminal; during the transaction, the mobile terminal is obtained through the APP installed on the mobile terminal.
  • the location access authority After the location access authority, it further obtains the GPS location information of the mobile terminal, and sends packaged messages in a fixed format to the transaction background, and parses the messages to obtain the mPOS terminal positioning information and associates it with the transaction, so as to meet the requirements of the terminal that accepts the Supervision No. 85 document. The need for each transaction location and risk detection.
  • the process of transaction positioning in the prior art is cumbersome, and there are at least the following three problems: First, to obtain the GPS positioning information of the mobile terminal, the positioning information can only be obtained by relying on the mobile terminal APP and obtaining the access authority. , the operation is cumbersome; second, the mobile terminal APP development workload is large, the Android market and IOS APP STORE security inspection is strict, and the acquisition of sensitive information such as location is complicated. area, there are cases where the transaction is completed normally but the location information cannot be uploaded.
  • the embodiments of the present disclosure propose a system and method for locating transaction addresses, so as to solve the cumbersome operation of locating transactions in the prior art, must rely on the mobile terminal APP and completely rely on GPS positioning, such as in the prior art. In areas with poor GPS signal, there are problems such as the transaction is completed normally but the location information cannot be uploaded.
  • a first aspect of the embodiments of the present disclosure provides a system for locating a transaction address, the system at least includes: a mobile payment terminal, a mobile terminal and a server; the mobile terminal is respectively connected to the mobile payment terminal and the server;
  • the mobile payment terminal configured to send transaction data and transaction signature data to the mobile terminal respectively;
  • the mobile terminal is used to send the transaction data, the transaction signature data and its own IP address information to the server; it is also used to send the transaction result and the signature verification result to the mobile payment terminal;
  • the server is used to process the transaction data, generate a transaction result and send it to the mobile terminal; also be used to generate a signature verification result according to the transaction signature data and send it to the mobile terminal;
  • the IP address information obtains the transaction location.
  • the mobile payment terminal is further configured to receive a user's consumption request and consumption data, and package the consumption data to generate the transaction data.
  • the mobile payment terminal is connected with the mobile terminal through a wireless communication technology; the mobile terminal is connected with the server through the wireless communication technology and/or cellular mobile communication technology.
  • the wireless communication technology specifically includes one or more of NFC, Bluetooth, and Wi-Fi.
  • the server after acquiring the IP address information, acquires the transaction location by invoking a positioning interface provided by a map open platform.
  • the interaction between the mobile terminal and the server needs to follow the TCP/IP protocol.
  • a second aspect of the embodiments of the present disclosure provides a method for locating a transaction address, including:
  • the method further includes: after the server acquires the IP address information, acquiring the transaction location by invoking a positioning interface provided by a map open platform.
  • the transaction location specifically includes: one or more of city, city code and/or longitude and latitude information of city center.
  • the method further includes the server associating the transaction location with the transaction result, the signature verification result.
  • a third aspect of the embodiments of the present disclosure provides an electronic device, including:
  • the memory is connected in communication with the one or more processors, the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors , the electronic device is used to implement the methods described in the foregoing embodiments.
  • a fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium on which computer-executable instructions are stored.
  • the computer-executable instructions can be used to implement the foregoing embodiments. Methods.
  • a fifth aspect of the embodiments of the present disclosure provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer can be used to implement the methods described in the foregoing embodiments.
  • transaction positioning can be realized by obtaining the IP address of the mobile terminal, without any APP, without obtaining access rights, avoiding the access operation of sensitive information, and at the same time without relying on GPS positioning, the user has no sense of operation, and has a good experience .
  • FIG. 1 is an exemplary diagram of a system for locating a transaction address according to some embodiments of the present disclosure
  • FIG. 2 is a schematic diagram of a system for locating a transaction address according to some embodiments of the present disclosure
  • FIG. 3 is a schematic flowchart of a method for locating a transaction address according to some embodiments of the present disclosure
  • FIG. 4 is a schematic diagram of a transaction process according to some embodiments of the present disclosure.
  • FIG. 5 is a schematic diagram of processing conditions of each layer in the TCP/IP protocol according to some embodiments of the present disclosure
  • FIG. 6 is a schematic diagram of the structure of TCP packet header information according to some embodiments of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an electronic device according to some embodiments of the present disclosure.
  • the mainstream mPOS Mobile POS
  • the mainstream mPOS mobile POS
  • the mobile terminal obtains the positioning information of the mobile terminal through the Bluetooth connection between the Bluetooth chip in the POS and the mobile terminal; during the transaction, the mobile terminal is obtained through the APP installed on the mobile terminal.
  • the location access authority After the location access authority, it further obtains the GPS location information of the mobile terminal, and sends packaged messages in a fixed format to the transaction background, and parses the messages to obtain the mPOS terminal positioning information and associates it with the transaction, so as to meet the requirements of the terminal that accepts the Supervision No. 85 document. The need for each transaction location and risk detection.
  • the process of transaction positioning in the prior art is cumbersome, and there are at least the following three problems: First, to obtain the GPS positioning information of the mobile terminal, the positioning information can only be obtained by relying on the mobile terminal APP and obtaining the access authority. , the operation is cumbersome; second, the mobile terminal APP development workload is large, the Android market and IOS APP STORE security inspection is strict, and the acquisition of sensitive information such as location is complicated. area, there are cases where the transaction is completed normally but the location information cannot be uploaded.
  • an embodiment of the present disclosure provides a system 100 for locating a transaction address.
  • the system at least includes: a mobile payment terminal 101 , a mobile terminal 102 and a server 103 ; the mobile terminal 102 respectively Connect with the mobile payment terminal 101 and the server 103;
  • the mobile payment terminal 101 is configured to send transaction data and transaction signature data to the mobile terminal respectively;
  • the mobile terminal 102 is used to send the transaction data, the transaction signature data and its own IP address information to the server 103; it is also used to send the transaction result and the signature verification result to the mobile payment terminal 101;
  • the server 103 is configured to process the transaction data, generate a transaction result and send it to the mobile terminal 102; be further configured to generate a signature verification result according to the transaction signature data and send it to the mobile terminal 102; and It is used to obtain the transaction location according to the IP address information.
  • the mobile payment terminal 101 is further configured to receive a consumption request and consumption data input by a user, and package the consumption data to generate the transaction data.
  • the mobile payment terminal 101 and the mobile terminal 102 are connected through wireless communication technology; the mobile terminal and the server are connected through the wireless communication technology and/or cellular mobile communication technology.
  • the wireless communication technology specifically includes one or more of NFC, Bluetooth, and Wi-Fi.
  • the server associates the transaction location with the transaction result, the signature verification result.
  • a mobile payment terminal communicates with the mobile terminal (mobile phone) through a wireless communication technology (Bluetooth). ) to connect to obtain the IP address of the mobile phone; the mobile terminal (mobile phone) is connected with the server (payment background) through the wireless communication technology (Wi-Fi) and/or cellular mobile communication technology (cellular mobile), and the payment background uses to resolve IP addresses and obtain location information.
  • Wi-Fi wireless communication technology
  • cellular mobile cellular mobile communication technology
  • IP address resolution and acquisition need to transform the existing mobile payment terminal (mPOS machine) application and background IDC load balancing device (server) side software to obtain public network IP address information and parse to obtain location information; through the present disclosure
  • the system can obtain mPOS location information by obtaining the IP address information of the mobile phone, without using the mobile phone APP and access rights, the user has no sense of use, and the user experience is good.
  • a method for locating a transaction address is also disclosed, as shown in FIG. 3 , including:
  • S302 receiving the transaction result returned by the server, and sending the transaction signature data and the IP address information of the mobile terminal to the server through the mobile terminal; wherein, the server obtains the transaction location according to the IP address information;
  • the method further includes: after the server acquires the IP address information, acquiring the transaction location by invoking a positioning interface provided by a map open platform.
  • the transaction location includes city information including city, city code and/or longitude and latitude information of city center.
  • the method further includes: when the mobile terminal sends data to the server, the TCP/IP protocol needs to be followed.
  • the method further includes the server associating the transaction location with the transaction result, the signature verification result.
  • the mobile terminal includes, but is not limited to, a mobile phone, a notebook, a tablet computer, and the like.
  • a transaction process is also disclosed, as shown in FIG. 4 , including:
  • mPOS receives the consumption amount, consumption method and corresponding password input by the user
  • consumption methods include: swiping cards and scanning codes.
  • the PIN value and/or the MAC value are encrypted.
  • S404 mPOS connects with the mobile terminal via Bluetooth, and sends transaction data to the mobile terminal;
  • the mobile terminal obtains its own IP address
  • the mobile terminal sends the transaction data to the server
  • the server processes the transaction data, generates a transaction result, and sends it to mPOS through the mobile terminal;
  • the mobile terminal sends the user's signature data and IP address information to the server;
  • the server processes the signature data and parses the IP address information
  • the server generates a signature verification result, and sends it to mPOS through the mobile terminal;
  • the data transmission between the mobile terminal and the server follows the TCP/IP (Transmission Control Protocol/Internet Protocol) protocol; wherein, the reference model of the TCP/IP protocol is divided into four levels: application layer, transport layer, The network interconnection layer and the host to the network layer; specifically, the details of each layer processing in the TCP/IP protocol are shown in Figure 5. Among them, when the transaction data is sent from the application layer to the transport layer, the header information of the TCP packet will be added.
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • FIG. 6 a schematic diagram of the structure of the header information of the TCP packet is shown in FIG. 6 .
  • the source and destination port number fields occupy 16 bits.
  • the TCP protocol uses "ports" to identify the source and destination application processes.
  • the port number can use any number between 0 and 65535.
  • Sequence number field occupies 32 bits. Used to identify the data byte stream sent from the TCP source to the TCP destination, it represents the first data byte in this segment.
  • Confirmation number field occupies 32 bits.
  • the acknowledgment number field is valid only when the ACK flag is 1. It contains the next byte of data that the destination expects to receive from the source.
  • Header length field 4 bits. Gives the number of headers occupying 32 bits.
  • a TCP header without any options field is 20 bytes long; there can be a maximum of 60 bytes of TCP header.
  • Flag bit field (U, A, P, R, S, F): 6 bits.
  • Window size field 16 bits. This field is used for flow control. The unit is the number of bytes, and this value is the number of bytes the machine expects to receive at one time.
  • TCP checksum field 16 bits. The checksum calculation is performed on the entire TCP segment, that is, the TCP header and the TCP data, and is verified by the destination.
  • Urgent pointer field occupies 16 bits. It is an offset that, added to the value in the sequence number field, represents the sequence number of the last byte of urgent data.
  • Option field occupies 32 bits. May include options such as "window expansion factor", "timestamp”, etc.
  • the 16-bit source port includes the port for initializing communication; the function of the source port, that is, the source IP address, is to identify the return address of the packet.
  • the source IP information can be obtained by calling the TCP header information and intercepting the first two bytes of 16-bit data.
  • the server obtains the transaction location according to the IP address information, which specifically includes: calling the API interface through the Web service API provided by the map open platform, and using the IP to obtain the approximate location; the returned result is shown in Table 1, which can be a city , city code and/or longitude and latitude information of city center, etc. At this point, the server obtains the location information corresponding to each transaction, and the transaction positioning is completed.
  • IP address information specifically includes: calling the API interface through the Web service API provided by the map open platform, and using the IP to obtain the approximate location; the returned result is shown in Table 1, which can be a city , city code and/or longitude and latitude information of city center, etc.
  • Table 1 Location information obtained by resolving IP addresses
  • the method further includes: receiving a consumption request input by a user, and performing data grouping according to the consumption request to generate the transaction data.
  • the method further includes: connecting the mPOS and the mobile terminal through wireless communication technology; connecting the mobile terminal and the server through the wireless communication technology and/or cellular mobile communication technology.
  • the method further includes: after the server obtains the IP address, obtaining the transaction location by invoking an API in a Web service provided by a map open platform.
  • the transaction location includes city information including city, city code and/or longitude and latitude information of city center.
  • the method further includes: when the mobile terminal sends data to the server, the TCP/IP protocol needs to be followed.
  • the embodiment of the present disclosure discloses a system and method for locating a transaction address, which can realize transaction location only by obtaining the IP address of a mobile terminal, without using any APP and without obtaining access rights, avoiding the access operation of sensitive information, and at the same time not requiring any APP. Relying on GPS positioning, the user has no sense of operation, and the experience is good.
  • the electronic device 700 includes:
  • the memory 730 is connected in communication with the one or more processors 710, and the memory 730 stores instructions 732 executable by the one or more processors, and the instructions 732 are executed by the one or more processors.
  • a plurality of processors 710 execute, so that the one or more processors 710 execute the methods in the foregoing embodiments of the present application.
  • the processor 710 and the memory 730 may be connected through a bus or in other ways, and the connection through the bus 740 is taken as an example in FIG. 7 .
  • the processor 710 may be a central processing unit (Central Processing Unit, CPU).
  • the processor 710 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • Other programmable logic devices discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
  • the memory 730 can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the cascaded progressive network in the embodiments of the present application.
  • the processor 710 executes various functional applications of the processor and data processing by executing non-transitory software programs, instructions, and modules 732 stored in the memory 730 .
  • the memory 730 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function; the storage data area may store data created by the processor 710 and the like. Additionally, memory 730 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 730 may optionally include memory located remotely from processor 710 that may be connected to processor 710 via a network, such as through communication interface 720 . Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • An embodiment of the present application also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and after the computer-executable instructions are executed, the methods in the foregoing embodiments of the present application are executed.
  • Computer-readable storage media includes physical volatile and non-volatile, removable and non-removable implemented in any manner or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. medium.
  • Computer-readable storage media specifically include, but are not limited to, U disk, removable hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), erasable programmable read-only memory Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other solid-state memory technology, CD-ROM, Digital Versatile Disc (DVD), HD-DVD, Blue-Ray, or other optical storage device, tape, disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and that can be accessed by a computer.
  • ROM read-only memory
  • RAM random access memory
  • EPROM erasable programmable read-only memory Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • Flash memory
  • program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types.
  • program modules may be located in both local and remote memory storage devices.
  • the functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the original technology or the part of the technical solution.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the present disclosure provides a system, method, electronic device and computer-readable storage medium for locating a transaction address.
  • Transaction positioning can be achieved by obtaining the IP address of the mobile terminal, without any APP or access rights, avoiding the access operation of sensitive information, and without relying on GPS positioning, the user has no sense of operation and a good experience.

Abstract

Embodiments of the present disclosure relate to the field of smart payment. Disclosed are a transaction address locating system and method. The system at least comprises: a mobile payment terminal, a mobile terminal, and a server. The mobile terminal is separately connected to the mobile payment terminal and the server; the mobile payment terminal is used for sending transaction data and transaction signature data to the mobile terminal separately; the mobile terminal is used for sending to the server the transaction data, the transaction signature data, and its own IP address information, and is also used for sending a transaction result and a signature verification result to the mobile payment terminal; and the server is used for processing the transaction data, generating a transaction result, and sending the transaction result to the mobile terminal, is also used for generating a signature verification result according to the transaction signature data and sending the signature verification result to the mobile terminal, and is also used for obtaining a transaction location according to the IP address information.

Description

一种定位交易地址的系统及方法A system and method for locating a transaction address 技术领域technical field
本公开涉及智能支付领域,具体涉及一种定位交易地址的系统及方法。The present disclosure relates to the field of intelligent payment, in particular to a system and method for locating a transaction address.
背景技术Background technique
目前市面上主流的mPOS(Mobile POS)都没有集成GPS及蜂窝通讯模块,都是通过POS中蓝牙芯片与移动终端蓝牙连接获取移动终端定位信息;在交易时通过移动终端上安装的APP获得移动终端位置访问权限后,进一步获得移动终端GPS位置信息,并以固定格式组包报文发送至交易后台,解析报文获得mPOS终端定位信息并与交易相关联,以满足监管85号文受理终端需记录每笔交易定位以及风险检测的需要。At present, the mainstream mPOS (Mobile POS) on the market do not have integrated GPS and cellular communication modules. They obtain the positioning information of the mobile terminal through the Bluetooth connection between the Bluetooth chip in the POS and the mobile terminal; during the transaction, the mobile terminal is obtained through the APP installed on the mobile terminal. After the location access authority, it further obtains the GPS location information of the mobile terminal, and sends packaged messages in a fixed format to the transaction background, and parses the messages to obtain the mPOS terminal positioning information and associates it with the transaction, so as to meet the requirements of the terminal that accepts the Supervision No. 85 document. The need for each transaction location and risk detection.
由此不难得知,现有技术中交易定位的流程繁琐,而且至少还存在以下三个问题:第一、获得移动终端的GPS定位信息,必须依赖移动终端APP且获得访问权限后才能获得定位信息,操作繁琐;第二、移动终端APP开发工作量较大,安卓市场及IOS APP STORE安全检查严格,位置等敏感信息的获取监管审核流程复杂;第三、完全依赖GPS定位,在GPS信号差的区域,存在交易正常完成但无法上送位置信息的情况。From this, it is not difficult to know that the process of transaction positioning in the prior art is cumbersome, and there are at least the following three problems: First, to obtain the GPS positioning information of the mobile terminal, the positioning information can only be obtained by relying on the mobile terminal APP and obtaining the access authority. , the operation is cumbersome; second, the mobile terminal APP development workload is large, the Android market and IOS APP STORE security inspection is strict, and the acquisition of sensitive information such as location is complicated. area, there are cases where the transaction is completed normally but the location information cannot be uploaded.
发明内容SUMMARY OF THE INVENTION
针对现有技术中的上述技术问题,本公开实施例提出了一种定位交易地址的系统及方法,以解决现有技术中定位交易操作繁琐、必须依赖移动终端APP且完全依赖GPS定位,如在GPS信号差的区域,存在交易正常完成但无法上送位置信息等问题。In view of the above technical problems in the prior art, the embodiments of the present disclosure propose a system and method for locating transaction addresses, so as to solve the cumbersome operation of locating transactions in the prior art, must rely on the mobile terminal APP and completely rely on GPS positioning, such as in the prior art. In areas with poor GPS signal, there are problems such as the transaction is completed normally but the location information cannot be uploaded.
本公开实施例的第一方面提供了一种定位交易地址的系统,所述系统至 少包括:移动支付终端、移动终端与服务器;所述移动终端分别与所述移动支付终端、所述服务器连接;A first aspect of the embodiments of the present disclosure provides a system for locating a transaction address, the system at least includes: a mobile payment terminal, a mobile terminal and a server; the mobile terminal is respectively connected to the mobile payment terminal and the server;
所述移动支付终端,用于向所述移动终端分别发送交易数据、交易签名数据;the mobile payment terminal, configured to send transaction data and transaction signature data to the mobile terminal respectively;
所述移动终端,用于将所述交易数据、所述交易签名数据及自身的IP地址信息发送至所述服务器;还用于向所述移动支付终端发送交易结果和签名验证结果;The mobile terminal is used to send the transaction data, the transaction signature data and its own IP address information to the server; it is also used to send the transaction result and the signature verification result to the mobile payment terminal;
所述服务器,用于对所述交易数据进行处理,生成交易结果并发送至所述移动终端;还用于根据所述交易签名数据生成签名验证结果并发送至所述移动终端;还用于根据所述IP地址信息获取交易位置。The server is used to process the transaction data, generate a transaction result and send it to the mobile terminal; also be used to generate a signature verification result according to the transaction signature data and send it to the mobile terminal; The IP address information obtains the transaction location.
在一些实施例中,所述移动支付终端还用于接收用户的消费请求及消费数据,并对所述消费数据进行数据组包生成所述交易数据。In some embodiments, the mobile payment terminal is further configured to receive a user's consumption request and consumption data, and package the consumption data to generate the transaction data.
在一些实施例中,所述移动支付终端通过无线通信技术与所述移动终端连接;所述移动终端通过所述无线通信技术和/或蜂窝移动通信技术与所述服务器连接。In some embodiments, the mobile payment terminal is connected with the mobile terminal through a wireless communication technology; the mobile terminal is connected with the server through the wireless communication technology and/or cellular mobile communication technology.
在一些实施例中,所述无线通信技术具体包括NFC、蓝牙、Wi-Fi中的一个或多个。In some embodiments, the wireless communication technology specifically includes one or more of NFC, Bluetooth, and Wi-Fi.
在一些实施例中,所述服务器获取所述IP地址信息后,通过调用地图开放平台提供的定位接口获取所述交易位置。In some embodiments, after acquiring the IP address information, the server acquires the transaction location by invoking a positioning interface provided by a map open platform.
在一些实施例中,所述移动终端与所述服务器之间的交互,需遵循TCP/IP协议。In some embodiments, the interaction between the mobile terminal and the server needs to follow the TCP/IP protocol.
本公开实施例的第二方面提供了一种定位交易地址的方法,包括:A second aspect of the embodiments of the present disclosure provides a method for locating a transaction address, including:
通过已建立连接的移动终端向服务器发送交易数据;Send transaction data to the server through the connected mobile terminal;
接收所述服务器返回的交易结果,通过所述移动终端向所述服务器发送签名数据和所述移动终端的IP地址信息;其中,所述服务器根据所述IP地址信息获取交易位置;Receive the transaction result returned by the server, and send the signature data and the IP address information of the mobile terminal to the server through the mobile terminal; wherein, the server obtains the transaction location according to the IP address information;
接收所述服务器返回的签名验证结果,交易完成。After receiving the signature verification result returned by the server, the transaction is completed.
在一些实施例中,所述方法还包括:所述服务器获取所述IP地址信息后,通过调用地图开放平台提供的定位接口获取所述交易位置。In some embodiments, the method further includes: after the server acquires the IP address information, acquiring the transaction location by invoking a positioning interface provided by a map open platform.
在一些实施例中,所述交易位置具体包括:城市、城市代码和/或城市中心经纬度信息中的一个或多个。In some embodiments, the transaction location specifically includes: one or more of city, city code and/or longitude and latitude information of city center.
在一些实施例中,所述方法还包括:所述服务器将所述交易位置与所述交易结果、所述签名验证结果相关联。In some embodiments, the method further includes the server associating the transaction location with the transaction result, the signature verification result.
本公开实施例的第三方面提供了一种电子设备,包括:A third aspect of the embodiments of the present disclosure provides an electronic device, including:
存储器以及一个或多个处理器;memory and one or more processors;
其中,所述存储器与所述一个或多个处理器通信连接,所述存储器中存储有可被所述一个或多个处理器执行的指令,所述指令被所述一个或多个处理器执行时,所述电子设备用于实现如前述各实施例所述的方法。wherein the memory is connected in communication with the one or more processors, the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors , the electronic device is used to implement the methods described in the foregoing embodiments.
本公开实施例的第四方面提供了一种计算机可读存储介质,其上存储有计算机可执行指令,当所述计算机可执行指令被计算装置执行时,可用来实现如前述各实施例所述的方法。A fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium on which computer-executable instructions are stored. When the computer-executable instructions are executed by a computing device, the computer-executable instructions can be used to implement the foregoing embodiments. Methods.
本公开实施例的第五方面提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,可用来实现如前述各实施例所述的方法。A fifth aspect of the embodiments of the present disclosure provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer can be used to implement the methods described in the foregoing embodiments.
本公开实施例中,通过获取移动终端的IP地址就可以实现交易定位,无需借助任何APP,也无需获取访问权限,避免敏感信息的访问操作,同时不依赖GPS定位,用户无感操作,体验良好。In the embodiment of the present disclosure, transaction positioning can be realized by obtaining the IP address of the mobile terminal, without any APP, without obtaining access rights, avoiding the access operation of sensitive information, and at the same time without relying on GPS positioning, the user has no sense of operation, and has a good experience .
附图说明Description of drawings
通过参考附图会更加清楚的理解本公开的特征和优点,附图是示意性的而不应理解为对本公开进行任何限制,在附图中:The features and advantages of the present disclosure will be more clearly understood by reference to the accompanying drawings, which are schematic and should not be construed as limiting the present disclosure in any way, in which:
图1是根据本公开的一些实施例所示的一种定位交易地址的系统示例图;1 is an exemplary diagram of a system for locating a transaction address according to some embodiments of the present disclosure;
图2是根据本公开的一些实施例所示的一种定位交易地址的系统示意图;2 is a schematic diagram of a system for locating a transaction address according to some embodiments of the present disclosure;
图3是根据本公开的一些实施例所示的一种定位交易地址的方法的流程示意图;3 is a schematic flowchart of a method for locating a transaction address according to some embodiments of the present disclosure;
图4是根据本公开的一些实施例所示的一种交易流程的示意图;4 is a schematic diagram of a transaction process according to some embodiments of the present disclosure;
图5是根据本公开的一些实施例所示的TCP/IP协议中各层处理情况的示意图;5 is a schematic diagram of processing conditions of each layer in the TCP/IP protocol according to some embodiments of the present disclosure;
图6是根据本公开的一些实施例所示的TCP包首部信息结构示意图;6 is a schematic diagram of the structure of TCP packet header information according to some embodiments of the present disclosure;
图7是根据本公开的一些实施例所示的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device according to some embodiments of the present disclosure.
具体实施方式detailed description
在下面的详细描述中,通过示例阐述了本公开的许多具体细节,以便提供对相关披露的透彻理解。然而,对于本领域的普通技术人员来讲,本公开显而易见的可以在没有这些细节的情况下实施。应当理解的是,本公开中使用“系统”、“装置”、“单元”和/或“模块”术语,是用于区分在顺序排列中不同级别的不同部件、元件、部分或组件的一种方法。然而,如果其他表达式可以实现相同的目的,这些术语可以被其他表达式替换。In the following detailed description, numerous specific details of the present disclosure are set forth by way of example in order to provide a thorough understanding of the related disclosure. However, it will be apparent to one of ordinary skill in the art that the present disclosure may be practiced without these details. It should be understood that the terms "system", "device", "unit" and/or "module" are used in this disclosure as a way of distinguishing different parts, elements, sections or assemblies at different levels in a sequential arrangement method. However, these terms can be replaced by other expressions if they serve the same purpose.
应当理解的是,当设备、单元或模块被称为“在……上”、“连接到”或“耦合到”另一设备、单元或模块时,其可以直接在另一设备、单元或模块上,连接或耦合到或与其他设备、单元或模块通信,或者可以存在中间设备、单元或模块,除非上下文明确提示例外情形。例如,本公开所使用的术语“和/或”包括一个或多个相关所列条目的任何一个和所有组合。It will be understood that when a device, unit or module is referred to as being "on", "connected to" or "coupled to" another device, unit or module, it can be directly on the other device, unit or module above, connected or coupled to or in communication with other devices, units or modules, or there may be intervening devices, units or modules, unless the context clearly dictates otherwise. For example, as used in this disclosure, the term "and/or" includes any and all combinations of one or more of the associated listed items.
本公开所用术语仅为了描述特定实施例,而非限制本公开范围。如本公开说明书和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的特征、整体、步骤、操作、元素和/或组件,而该类表述并不构成一个排它性的罗列,其他特征、整体、步骤、操作、元素和/或组件也可以包含在内。The terminology used in this disclosure is for the purpose of describing particular embodiments only, and does not limit the scope of the disclosure. As shown in this disclosure and the claims, unless the context clearly dictates otherwise, the words "a", "an", "an" and/or "the" are not intended to be specific in the singular and may include the plural. Generally speaking, the terms "comprising" and "comprising" only imply that the clearly identified features, integers, steps, operations, elements and/or components are included, and such expressions do not constitute an exclusive listing, other features, Entities, steps, operations, elements and/or components may also be included.
参看下面的说明以及附图,本公开的这些或其他特征和特点、操作方法、结构的相关元素的功能、部分的结合以及制造的经济性可以被更好地理解,其中说明和附图形成了说明书的一部分。然而,可以清楚地理解,附图仅用作说明和描述的目的,并不意在限定本公开的保护范围。可以理解的是,附图并非按比例绘制。These and other features and characteristics of the present disclosure, method of operation, function of related elements of structure, combination of parts, and economics of manufacture may be better understood with reference to the following description and drawings, which form a part of the manual. However, it is to be clearly understood that the accompanying drawings are for illustration and description purposes only and are not intended to limit the scope of protection of the present disclosure. It will be appreciated that the drawings are not drawn to scale.
本公开中使用了多种结构图用来说明根据本公开的实施例的各种变形。应当理解的是,前面或下面的结构并不是用来限定本公开。本公开的保护范围以权利要求为准。Various block diagrams are used in the present disclosure to illustrate various modifications of the embodiments according to the present disclosure. It should be understood that the preceding or following structures are not intended to limit the present disclosure. The scope of protection of the present disclosure is governed by the claims.
目前市面上主流的mPOS(Mobile POS)都没有集成GPS及蜂窝通讯模块,都是通过POS中蓝牙芯片与移动终端蓝牙连接获取移动终端定位信息;在交易时通过移动终端上安装的APP获得移动终端位置访问权限后,进一步获得移动终端GPS位置信息,并以固定格式组包报文发送至交易后台,解析报文获得mPOS终端定位信息并与交易相关联,以满足监管85号文受理终端需记录每笔交易定位以及风险检测的需要。At present, the mainstream mPOS (Mobile POS) on the market do not have integrated GPS and cellular communication modules. They obtain the positioning information of the mobile terminal through the Bluetooth connection between the Bluetooth chip in the POS and the mobile terminal; during the transaction, the mobile terminal is obtained through the APP installed on the mobile terminal. After the location access authority, it further obtains the GPS location information of the mobile terminal, and sends packaged messages in a fixed format to the transaction background, and parses the messages to obtain the mPOS terminal positioning information and associates it with the transaction, so as to meet the requirements of the terminal that accepts the Supervision No. 85 document. The need for each transaction location and risk detection.
由此不难得知,现有技术中交易定位的流程繁琐,而且至少还存在以下三个问题:第一、获得移动终端的GPS定位信息,必须依赖移动终端APP且获得访问权限后才能获得定位信息,操作繁琐;第二、移动终端APP开发工作量较大,安卓市场及IOS APP STORE安全检查严格,位置等敏感信息的获取监管审核流程复杂;第三、完全依赖GPS定位,在GPS信号差的区域,存在交易正常完成但无法上送位置信息的情况。From this, it is not difficult to know that the process of transaction positioning in the prior art is cumbersome, and there are at least the following three problems: First, to obtain the GPS positioning information of the mobile terminal, the positioning information can only be obtained by relying on the mobile terminal APP and obtaining the access authority. , the operation is cumbersome; second, the mobile terminal APP development workload is large, the Android market and IOS APP STORE security inspection is strict, and the acquisition of sensitive information such as location is complicated. area, there are cases where the transaction is completed normally but the location information cannot be uploaded.
为解决上述问题,本公开实施例提供了一种定位交易地址的系统100,如图1所示,所述系统至少包括:移动支付终端101、移动终端102与服务器103;所述移动终端102分别与所述移动支付终端101、所述服务器103连接;In order to solve the above problems, an embodiment of the present disclosure provides a system 100 for locating a transaction address. As shown in FIG. 1 , the system at least includes: a mobile payment terminal 101 , a mobile terminal 102 and a server 103 ; the mobile terminal 102 respectively Connect with the mobile payment terminal 101 and the server 103;
所述移动支付终端101,用于向所述移动终端分别发送交易数据、交易签名数据;The mobile payment terminal 101 is configured to send transaction data and transaction signature data to the mobile terminal respectively;
所述移动终端102,用于将所述交易数据、所述交易签名数据及自身的 IP地址信息发送至所述服务器103;还用于向所述移动支付终端101发送交易结果和签名验证结果;The mobile terminal 102 is used to send the transaction data, the transaction signature data and its own IP address information to the server 103; it is also used to send the transaction result and the signature verification result to the mobile payment terminal 101;
所述服务器103,用于对所述交易数据进行处理,生成交易结果并发送至所述移动终端102;还用于根据所述交易签名数据生成签名验证结果并发送至所述移动终端102;还用于根据所述IP地址信息获取交易位置。The server 103 is configured to process the transaction data, generate a transaction result and send it to the mobile terminal 102; be further configured to generate a signature verification result according to the transaction signature data and send it to the mobile terminal 102; and It is used to obtain the transaction location according to the IP address information.
在一些实施例中,所述移动支付终端101还用于接收用户输入的消费请求及消费数据,并对所述消费数据进行数据组包生成所述交易数据。In some embodiments, the mobile payment terminal 101 is further configured to receive a consumption request and consumption data input by a user, and package the consumption data to generate the transaction data.
在一些实施例中,所述移动支付终端101与所述移动终端102通过无线通信技术进行连接;所述移动终端与所述服务器通过所述无线通信技术和/或蜂窝移动通信技术进行连接。In some embodiments, the mobile payment terminal 101 and the mobile terminal 102 are connected through wireless communication technology; the mobile terminal and the server are connected through the wireless communication technology and/or cellular mobile communication technology.
在一些实施例中,所述无线通信技术具体包括NFC、蓝牙、Wi-Fi中的一个或多个。In some embodiments, the wireless communication technology specifically includes one or more of NFC, Bluetooth, and Wi-Fi.
在一些实施例中,所述服务器将所述交易位置与所述交易结果、所述签名验证结果相关联。In some embodiments, the server associates the transaction location with the transaction result, the signature verification result.
在一个具体的实施例中,如图2所示,展示了一种定位交易地址的系统的具体应用,其中,移动支付终端(mPOS机)通过无线通信技术(蓝牙)与所述移动终端(手机)进行连接,获取手机的IP地址;所述移动终端(手机)通过所述无线通信技术(Wi-Fi)和/或蜂窝移动通信技术(蜂窝移动)与服务器(支付后台)连接,支付后台用于解析IP地址,并获得位置信息。In a specific embodiment, as shown in FIG. 2, a specific application of a system for locating a transaction address is shown, wherein a mobile payment terminal (mPOS machine) communicates with the mobile terminal (mobile phone) through a wireless communication technology (Bluetooth). ) to connect to obtain the IP address of the mobile phone; the mobile terminal (mobile phone) is connected with the server (payment background) through the wireless communication technology (Wi-Fi) and/or cellular mobile communication technology (cellular mobile), and the payment background uses to resolve IP addresses and obtain location information.
本公开实施例中,IP地址解析获取需要对现有移动支付终端(mPOS机)应用及后台IDC负载均衡设备(服务器)端软件改造以获取公网IP地址信息及解析获得位置信息;通过本公开的系统,可以通过获取手机IP地址信息继而获取mPOS位置信息,无需借助手机APP和访问权限,用户使用无感,用户体验良好。In the embodiment of the present disclosure, IP address resolution and acquisition need to transform the existing mobile payment terminal (mPOS machine) application and background IDC load balancing device (server) side software to obtain public network IP address information and parse to obtain location information; through the present disclosure The system can obtain mPOS location information by obtaining the IP address information of the mobile phone, without using the mobile phone APP and access rights, the user has no sense of use, and the user experience is good.
本公开实施例中,还公开了一种定位交易地址的方法,具体如图3所示,包括:In the embodiment of the present disclosure, a method for locating a transaction address is also disclosed, as shown in FIG. 3 , including:
S301、通过已建立连接的移动终端向服务器发送交易数据;S301, sending transaction data to a server through a mobile terminal that has established a connection;
S302、接收所述服务器返回的交易结果,通过所述移动终端向所述服务器发送交易签名数据和所述移动终端的IP地址信息;其中,所述服务器根据所述IP地址信息获取交易位置;S302, receiving the transaction result returned by the server, and sending the transaction signature data and the IP address information of the mobile terminal to the server through the mobile terminal; wherein, the server obtains the transaction location according to the IP address information;
S303、接收所述服务器返回的签名验证结果,交易完成。S303. Receive the signature verification result returned by the server, and the transaction is completed.
在一些实施例中,所述方法还包括:所述服务器获取所述IP地址信息后,通过调用地图开放平台提供的定位接口获取所述交易位置。In some embodiments, the method further includes: after the server acquires the IP address information, acquiring the transaction location by invoking a positioning interface provided by a map open platform.
在一些实施例中,所述交易位置包括:城市、城市代码和/或城市中心经纬度信息在内的城市信息。In some embodiments, the transaction location includes city information including city, city code and/or longitude and latitude information of city center.
在一些实施例中,所述方法还包括:所述移动终端向所述服务器发送数据时,需遵循TCP/IP协议。In some embodiments, the method further includes: when the mobile terminal sends data to the server, the TCP/IP protocol needs to be followed.
在一些实施例中,所述方法还包括:所述服务器将所述交易位置与所述交易结果、所述签名验证结果相关联。In some embodiments, the method further includes the server associating the transaction location with the transaction result, the signature verification result.
在一些实施例中,所述移动终端包括但不限于手机、笔记本、平板电脑等。In some embodiments, the mobile terminal includes, but is not limited to, a mobile phone, a notebook, a tablet computer, and the like.
进一步地,在一些实施例中,还公开了一种交易流程,具体如图4所示,包括:Further, in some embodiments, a transaction process is also disclosed, as shown in FIG. 4 , including:
S401、mPOS收到用户的消费请求;S401. mPOS receives a consumption request from the user;
S402、mPOS接收用户输入的消费金额、消费方式及对应的密码;S402, mPOS receives the consumption amount, consumption method and corresponding password input by the user;
具体地,消费方式包括:刷卡、扫码。Specifically, consumption methods include: swiping cards and scanning codes.
S403、mPOS进行数据组包;S403, mPOS performs data packetization;
具体地,在进行数据组包时,对PIN值和/或MAC值进行加密。Specifically, during data packetization, the PIN value and/or the MAC value are encrypted.
S404、mPOS与移动终端进行蓝牙连接,并向所述移动终端发送交易数据;S404, mPOS connects with the mobile terminal via Bluetooth, and sends transaction data to the mobile terminal;
S405、移动终端获取自身的IP地址;S405, the mobile terminal obtains its own IP address;
S406、移动终端将交易数据发送至服务器;S406, the mobile terminal sends the transaction data to the server;
S407、服务器对交易数据进行处理,生成交易结果,并通过移动终端发送至mPOS;S407, the server processes the transaction data, generates a transaction result, and sends it to mPOS through the mobile terminal;
S408、mPOS获取用户的交易签名数据,并发送至移动终端;S408, mPOS obtains the user's transaction signature data, and sends it to the mobile terminal;
S409、移动终端将用户的签名数据和IP地址信息发送至服务器;S409, the mobile terminal sends the user's signature data and IP address information to the server;
S410、服务器处理签名数据并解析IP地址信息;S410, the server processes the signature data and parses the IP address information;
S411、服务器生成签名验证结果,并通过移动终端发送至mPOS;S411, the server generates a signature verification result, and sends it to mPOS through the mobile terminal;
S412、mPOS处理签名验证结果,交易结束。S412, mPOS processes the signature verification result, and the transaction ends.
在一些实施例中,移动终端与服务器之间的数据传输遵循TCP/IP(Transmission Control Protocol/Internet Protocol)协议;其中,TCP/IP协议的参考模型分为四个层次:应用层、传输层、网络互连层和主机到网络层;具体地,TCP/IP协议中各层处理的具体情况如图5所示。其中,交易数据由应用层发送至传输层时,会增加TCP包首部信息。In some embodiments, the data transmission between the mobile terminal and the server follows the TCP/IP (Transmission Control Protocol/Internet Protocol) protocol; wherein, the reference model of the TCP/IP protocol is divided into four levels: application layer, transport layer, The network interconnection layer and the host to the network layer; specifically, the details of each layer processing in the TCP/IP protocol are shown in Figure 5. Among them, when the transaction data is sent from the application layer to the transport layer, the header information of the TCP packet will be added.
进一步地,TCP包首部信息结构示意图如图6所示。其中,源、目标端口号字段:占16比特。TCP协议通过使用"端口"来标识源端和目标端的应用进程。端口号可以使用0到65535之间的任何数字。顺序号字段:占32比特。用来标识从TCP源端向TCP目标端发送的数据字节流,它表示在这个报文段中的第一个数据字节。确认号字段:占32比特。只有ACK标志为1时,确认号字段才有效。它包含目标端所期望收到源端的下一个数据字节。头部长度字段:占4比特。给出头部占32比特的数目。没有任何选项字段的TCP头部长度为20字节;最多可以有60字节的TCP头部。标志位字段(U、A、P、R、S、F):占6比特。窗口大小字段:占16比特。此字段用来进行流量控制。单位为字节数,这个值是本机期望一次接收的字节数。TCP校验和字段:占16比特。对整个TCP报文段,即TCP头部和TCP数据进行校验和计算,并由目标端进行验证。紧急指针字段:占16比特。它是一个偏移量,和序号字段中的值相加表示紧急数据最后一个字节的序号。选项字段:占32比特。可能包括"窗口扩大因子"、"时间戳"等选项。Further, a schematic diagram of the structure of the header information of the TCP packet is shown in FIG. 6 . Among them, the source and destination port number fields: occupy 16 bits. The TCP protocol uses "ports" to identify the source and destination application processes. The port number can use any number between 0 and 65535. Sequence number field: occupies 32 bits. Used to identify the data byte stream sent from the TCP source to the TCP destination, it represents the first data byte in this segment. Confirmation number field: occupies 32 bits. The acknowledgment number field is valid only when the ACK flag is 1. It contains the next byte of data that the destination expects to receive from the source. Header length field: 4 bits. Gives the number of headers occupying 32 bits. A TCP header without any options field is 20 bytes long; there can be a maximum of 60 bytes of TCP header. Flag bit field (U, A, P, R, S, F): 6 bits. Window size field: 16 bits. This field is used for flow control. The unit is the number of bytes, and this value is the number of bytes the machine expects to receive at one time. TCP checksum field: 16 bits. The checksum calculation is performed on the entire TCP segment, that is, the TCP header and the TCP data, and is verified by the destination. Urgent pointer field: occupies 16 bits. It is an offset that, added to the value in the sequence number field, represents the sequence number of the last byte of urgent data. Option field: occupies 32 bits. May include options such as "window expansion factor", "timestamp", etc.
具体地,16位的源端口中包含初始化通信的端口;源端口即源IP地址的作用是标识报文的返回地址。通过调用TCP首部信息并截取前两个字节16位数据即可获得源IP信息。Specifically, the 16-bit source port includes the port for initializing communication; the function of the source port, that is, the source IP address, is to identify the return address of the packet. The source IP information can be obtained by calling the TCP header information and intercepting the first two bytes of 16-bit data.
在一些实施例中,服务器根据IP地址信息获取交易位置,具体包括:通过地图开放平台提供的Web服务API,调用API接口,利用IP获取大致位置;返回的结果如表1所示,可以为城市、城市代码和/或城市中心经纬度信息等。至此服务器获得每笔交易对应位置信息,交易定位完成。In some embodiments, the server obtains the transaction location according to the IP address information, which specifically includes: calling the API interface through the Web service API provided by the map open platform, and using the IP to obtain the approximate location; the returned result is shown in Table 1, which can be a city , city code and/or longitude and latitude information of city center, etc. At this point, the server obtains the location information corresponding to each transaction, and the transaction positioning is completed.
表1:解析IP地址获得的位置信息Table 1: Location information obtained by resolving IP addresses
Figure PCTCN2020113495-appb-000001
Figure PCTCN2020113495-appb-000001
在一些实施例中,所述方法还包括:接收用户输入的消费请求,并根据所述消费请求进行数据组包生成所述交易数据。In some embodiments, the method further includes: receiving a consumption request input by a user, and performing data grouping according to the consumption request to generate the transaction data.
在一些实施例中,所述方法还包括:mPOS与所述移动终端通过无线通信技术进行连接;所述移动终端与所述服务器通过所述无线通信技术和/或蜂窝移动通信技术进行连接。In some embodiments, the method further includes: connecting the mPOS and the mobile terminal through wireless communication technology; connecting the mobile terminal and the server through the wireless communication technology and/or cellular mobile communication technology.
在一些实施例中,所述方法还包括:所述服务器获取所述IP地址后,通过调用地图开放平台提供的Web服务中的API获取所述交易位置。In some embodiments, the method further includes: after the server obtains the IP address, obtaining the transaction location by invoking an API in a Web service provided by a map open platform.
在一些实施例中,所述交易位置包括:城市、城市代码和/或城市中心经纬度信息在内的城市信息。In some embodiments, the transaction location includes city information including city, city code and/or longitude and latitude information of city center.
在一些实施例中,所述方法还包括:所述移动终端向所述服务器发送数据时,需遵循TCP/IP协议。In some embodiments, the method further includes: when the mobile terminal sends data to the server, the TCP/IP protocol needs to be followed.
本公开实施例公开了一种定位交易地址的系统及方法,仅仅通过获取移动终端的IP地址就可以实现交易定位,无需借助任何APP,也无需获取访问权限,避免敏感信息的访问操作,同时不依赖GPS定位,用户无感操作,体 验良好。The embodiment of the present disclosure discloses a system and method for locating a transaction address, which can realize transaction location only by obtaining the IP address of a mobile terminal, without using any APP and without obtaining access rights, avoiding the access operation of sensitive information, and at the same time not requiring any APP. Relying on GPS positioning, the user has no sense of operation, and the experience is good.
本公开实施例中,还公开了一种电子设备示意图,如图7所示。其中,该电子设备700包括:In the embodiment of the present disclosure, a schematic diagram of an electronic device is also disclosed, as shown in FIG. 7 . Wherein, the electronic device 700 includes:
存储器730以及一个或多个处理器710;memory 730 and one or more processors 710;
其中,所述存储器730与所述一个或多个处理器710通信连接,所述存储器730中存储有可被所述一个或多个处理器执行的指令732,所述指令732被所述一个或多个处理器710执行,以使所述一个或多个处理器710执行本申请前述实施例中的方法。The memory 730 is connected in communication with the one or more processors 710, and the memory 730 stores instructions 732 executable by the one or more processors, and the instructions 732 are executed by the one or more processors. A plurality of processors 710 execute, so that the one or more processors 710 execute the methods in the foregoing embodiments of the present application.
具体地,处理器710和存储器730可以通过总线或者其他方式连接,图7中以通过总线740连接为例。处理器710可以为中央处理器(Central Processing Unit,CPU)。处理器710还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。Specifically, the processor 710 and the memory 730 may be connected through a bus or in other ways, and the connection through the bus 740 is taken as an example in FIG. 7 . The processor 710 may be a central processing unit (Central Processing Unit, CPU). The processor 710 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above types of chips.
存储器730作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的级联渐进网络等。处理器710通过运行存储在存储器730中的非暂态软件程序、指令以及模块732,从而执行处理器的各种功能应用以及数据处理。As a non-transitory computer-readable storage medium, the memory 730 can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the cascaded progressive network in the embodiments of the present application. The processor 710 executes various functional applications of the processor and data processing by executing non-transitory software programs, instructions, and modules 732 stored in the memory 730 .
存储器730可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器710所创建的数据等。此外,存储器730可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器730可选包括相对于处理器710远程设置的存储器,这些远程存储器可以通过网络(比如通过通信接口720)连接至处理器710。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 730 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function; the storage data area may store data created by the processor 710 and the like. Additionally, memory 730 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 730 may optionally include memory located remotely from processor 710 that may be connected to processor 710 via a network, such as through communication interface 720 . Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
本申请的一个实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行后执行本申请前述实施例中的方法。An embodiment of the present application also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and after the computer-executable instructions are executed, the methods in the foregoing embodiments of the present application are executed.
前述的计算机可读取存储介质包括以存储如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方式或技术来实现的物理易失性和非易失性、可移动和不可移动介质。计算机可读取存储介质具体包括,但不限于,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、可擦除可编程只读存储器(EPROM)、电可擦可编程只读存储器(EEPROM)、闪存或其他固态存储器技术、CD-ROM、数字多功能盘(DVD)、HD-DVD、蓝光(Blue-Ray)或其他光存储设备、磁带、磁盘存储或其他磁性存储设备、或能用于存储所需信息且可以由计算机访问的任何其他介质。The aforementioned computer-readable storage media includes physical volatile and non-volatile, removable and non-removable implemented in any manner or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. medium. Computer-readable storage media specifically include, but are not limited to, U disk, removable hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), erasable programmable read-only memory Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other solid-state memory technology, CD-ROM, Digital Versatile Disc (DVD), HD-DVD, Blue-Ray, or other optical storage device, tape, disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and that can be accessed by a computer.
尽管此处所述的主题是在结合操作系统和应用程序在计算机系统上的执行而执行的一般上下文中提供的,但本领域技术人员可以认识到,还可结合其他类型的程序模块来执行其他实现。一般而言,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、组件、数据结构和其他类型的结构。本领域技术人员可以理解,此处所述的本主题可以使用其他计算机系统配置来实践,包括手持式设备、多处理器系统、基于微处理器或可编程消费电子产品、小型计算机、大型计算机等,也可使用在其中任务由通过通信网络连接的远程处理设备执行的分布式计算环境中。在分布式计算环境中,程序模块可位于本地和远程存储器存储设备的两者中。Although the subject matter described herein is presented in the general context of execution in connection with the execution of an operating system and application programs on a computer system, those skilled in the art will recognize that other types of program modules may also be used to perform other accomplish. Generally, program modules include routines, programs, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types. Those skilled in the art will appreciate that the subject matter described herein may be practiced using other computer system configurations, including hand-held devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, and the like , may also be used in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
本领域普通技术人员可以意识到,结合本文中所本申请的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and method steps of each example described in conjunction with the embodiments of the application herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用 时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对原有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the original technology or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
综上所述,本公开提出了一种定位交易地址的系统、方法、电子设备及其计算机可读存储介质。通过获取移动终端的IP地址就可以实现交易定位,无需借助任何APP,也无需获取访问权限,避免敏感信息的访问操作,同时不依赖GPS定位,用户无感操作,体验良好。In conclusion, the present disclosure provides a system, method, electronic device and computer-readable storage medium for locating a transaction address. Transaction positioning can be achieved by obtaining the IP address of the mobile terminal, without any APP or access rights, avoiding the access operation of sensitive information, and without relying on GPS positioning, the user has no sense of operation and a good experience.
应当理解的是,本公开的上述具体实施方式仅仅用于示例性说明或解释本公开的原理,而不构成对本公开的限制。因此,在不偏离本公开的精神和范围的情况下所做的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。此外,本公开所附权利要求旨在涵盖落入所附权利要求范围和边界、或者这种范围和边界的等同形式内的全部变化和修改例。It should be understood that the above-mentioned specific embodiments of the present disclosure are only used to illustrate or explain the principles of the present disclosure, and not to limit the present disclosure. Therefore, any modifications, equivalent replacements, improvements, etc. made without departing from the spirit and scope of the present disclosure should be included within the protection scope of the present disclosure. Furthermore, the appended claims of the present disclosure are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalents of such scope and boundaries.

Claims (10)

  1. 一种定位交易地址的系统,其特征在于,所述系统至少包括:移动支付终端、移动终端与服务器;所述移动终端分别与所述移动支付终端、所述服务器连接;A system for locating a transaction address, characterized in that the system at least comprises: a mobile payment terminal, a mobile terminal and a server; the mobile terminal is respectively connected with the mobile payment terminal and the server;
    所述移动支付终端,用于向所述移动终端分别发送交易数据、交易签名数据;the mobile payment terminal, configured to send transaction data and transaction signature data to the mobile terminal respectively;
    所述移动终端,用于将所述交易数据、所述交易签名数据及自身的IP地址信息发送至所述服务器;还用于向所述移动支付终端发送交易结果和签名验证结果;The mobile terminal is used to send the transaction data, the transaction signature data and its own IP address information to the server; it is also used to send the transaction result and the signature verification result to the mobile payment terminal;
    所述服务器,用于对所述交易数据进行处理,生成交易结果并发送至所述移动终端;还用于根据所述交易签名数据生成签名验证结果并发送至所述移动终端;还用于根据所述IP地址信息获取交易位置。The server is used to process the transaction data, generate a transaction result and send it to the mobile terminal; also be used to generate a signature verification result according to the transaction signature data and send it to the mobile terminal; The IP address information obtains the transaction location.
  2. 根据权利要求1所述的系统,其特征在于,所述移动支付终端还用于接收用户的消费请求及消费数据,并对所述消费数据进行数据组包生成所述交易数据。The system according to claim 1, wherein the mobile payment terminal is further configured to receive a user's consumption request and consumption data, and package the consumption data to generate the transaction data.
  3. 根据权利要求1所述的系统,其特征在于,所述移动支付终端通过无线通信技术与所述移动终端连接;所述移动终端通过所述无线通信技术和/或蜂窝移动通信技术与所述服务器连接。The system according to claim 1, wherein the mobile payment terminal is connected with the mobile terminal through a wireless communication technology; the mobile terminal is connected with the server through the wireless communication technology and/or cellular mobile communication technology connect.
  4. 根据权利要求3所述的系统,其特征在于,所述无线通信技术具体包括NFC、蓝牙、Wi-Fi中的一个或多个。The system according to claim 3, wherein the wireless communication technology specifically includes one or more of NFC, Bluetooth, and Wi-Fi.
  5. 根据权利要求1所述的系统,其特征在于,所述服务器获取所述IP地址信息后,通过调用地图开放平台提供的定位接口获取所述交易位置。The system according to claim 1, wherein after acquiring the IP address information, the server acquires the transaction location by invoking a positioning interface provided by a map open platform.
  6. 根据权利要求1所述的系统,其特征在于,所述移动终端与所述服务器之间的交互,需遵循TCP/IP协议。The system according to claim 1, wherein the interaction between the mobile terminal and the server needs to follow the TCP/IP protocol.
  7. 一种定位交易地址的方法,其特征在于,包括:A method for locating a transaction address, comprising:
    通过已建立连接的移动终端向服务器发送交易数据;Send transaction data to the server through the connected mobile terminal;
    接收所述服务器返回的交易结果,通过所述移动终端向所述服务器发送签名数据和所述移动终端的IP地址信息;其中,所述服务器根据所述 IP地址信息获取交易位置;Receive the transaction result returned by the server, and send the signature data and the IP address information of the mobile terminal to the server through the mobile terminal; wherein, the server obtains the transaction location according to the IP address information;
    接收所述服务器返回的签名验证结果,交易完成。After receiving the signature verification result returned by the server, the transaction is completed.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:所述服务器获取所述IP地址信息后,通过调用地图开放平台提供的定位接口获取所述交易位置。The method according to claim 7, further comprising: after the server acquires the IP address information, acquiring the transaction location by invoking a positioning interface provided by a map open platform.
  9. 根据权利要求7或8所述的方法,其特征在于,所述交易位置具体包括:城市、城市代码和/或城市中心经纬度信息中的一个或多个。The method according to claim 7 or 8, wherein the transaction location specifically comprises: one or more of city, city code and/or longitude and latitude information of city center.
  10. 根据权利要求7所述的方法,其特征在于,所述方法还包括:所述服务器将所述交易位置与所述交易结果、所述签名验证结果相关联。The method according to claim 7, wherein the method further comprises: the server associating the transaction location with the transaction result and the signature verification result.
PCT/CN2020/113495 2020-07-03 2020-09-04 Transaction address locating system and method WO2022000766A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010631232.2 2020-07-03
CN202010631232.2A CN112003958A (en) 2020-07-03 2020-07-03 System and method for positioning transaction address

Publications (1)

Publication Number Publication Date
WO2022000766A1 true WO2022000766A1 (en) 2022-01-06

Family

ID=73467342

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113495 WO2022000766A1 (en) 2020-07-03 2020-09-04 Transaction address locating system and method

Country Status (2)

Country Link
CN (1) CN112003958A (en)
WO (1) WO2022000766A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130246220A1 (en) * 2011-09-13 2013-09-19 Ayman Hammad Mobile location notifications system and method
CN105493115A (en) * 2013-07-25 2016-04-13 Visa欧洲有限公司 Processing electronic tokens
CN105550873A (en) * 2015-12-02 2016-05-04 努比亚技术有限公司 Device and method of controlling bank card trading behavior
CN108537651A (en) * 2018-04-10 2018-09-14 深圳前海微众银行股份有限公司 Bookkeeping methods, mobile terminal and computer readable storage medium
CN109313760A (en) * 2016-05-27 2019-02-05 万事达卡国际公司 System and method for position data verifying

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164802A (en) * 2013-03-14 2013-06-19 北京恒远创智信息技术有限公司 Position detection based method and system for preventing illegal electronic transaction
CN104268746A (en) * 2014-09-17 2015-01-07 江苏爱心消费支付服务有限公司 Card-free payment method
CN105635164B (en) * 2016-01-21 2019-01-08 北京智能果技术有限公司 The method and apparatus of safety certification
CN205541170U (en) * 2016-03-03 2016-08-31 拉卡拉网络技术有限公司 MPOS machine and mobile payment system
TWI571814B (en) * 2016-03-04 2017-02-21 絡達科技股份有限公司 Method for emulating card reader interface and control device using the same
KR20170138113A (en) * 2016-06-07 2017-12-15 박현규 sticker barcode
CN106357550A (en) * 2016-11-01 2017-01-25 天脉聚源(北京)传媒科技有限公司 Method and device for controlling network flow based on Linux
CN107193903A (en) * 2017-05-11 2017-09-22 上海斐讯数据通信技术有限公司 The method and system of efficient process IP address zone location
CN107659675A (en) * 2017-08-21 2018-02-02 郑州埃文计算机科技有限公司 Dynamic IP multizone localization method based on polygon positioning form
CN108389052B (en) * 2018-02-27 2020-07-10 平安科技(深圳)有限公司 Method and device for preventing bank card from being embezzled, computer equipment and storage medium
CN109274725B (en) * 2018-08-31 2020-05-26 阿里巴巴集团控股有限公司 Internet transaction positioning method and device and server
CN110992135B (en) * 2019-11-25 2024-01-23 拉扎斯网络科技(上海)有限公司 Risk identification method and device, electronic equipment and storage medium
CN111080305A (en) * 2019-12-16 2020-04-28 中国建设银行股份有限公司 Risk identification method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130246220A1 (en) * 2011-09-13 2013-09-19 Ayman Hammad Mobile location notifications system and method
CN105493115A (en) * 2013-07-25 2016-04-13 Visa欧洲有限公司 Processing electronic tokens
CN105550873A (en) * 2015-12-02 2016-05-04 努比亚技术有限公司 Device and method of controlling bank card trading behavior
CN109313760A (en) * 2016-05-27 2019-02-05 万事达卡国际公司 System and method for position data verifying
CN108537651A (en) * 2018-04-10 2018-09-14 深圳前海微众银行股份有限公司 Bookkeeping methods, mobile terminal and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WANG, RUI: "Application of mPOS mobile financial solution in traditional POS field", ELECTRONIC TECHNOLOGY & SOFTWARE ENGINEERING, 1 July 2015 (2015-07-01), pages 90 - 91, XP055883945 *

Also Published As

Publication number Publication date
CN112003958A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN106921636B (en) Identity authentication method and device
US8914631B2 (en) Performing secure and non-secure communication over the same socket
KR101688548B1 (en) Method, one or more computer-readable non-transitory storage media and a device, in particular relating to computing resources and/or mobile-device-based trust computing
CN109413219B (en) Domain name resolution method and device, server and storage medium
ES2800430T3 (en) Wireless network type and electronic device detection method
CN114036216A (en) Data processing method, device and storage medium
CN110120854B (en) Method and device for transmitting data
US7933953B2 (en) Dual processing system capable of ensuring real-time processing in protocol conformance test
US11032272B2 (en) Mobile number verification for mobile network-based authentication
US9578513B2 (en) Identifying untrusted network access points
US11570274B1 (en) Systems for exchange of data between remote devices
CN110870286B (en) Fault tolerance processing method and device and server
WO2022000766A1 (en) Transaction address locating system and method
ES2280433T3 (en) PROCEDURE AND TERMINAL FOR THE SAFE ACQUISITION OF APPLICATIONS.
US20140136597A1 (en) Relay enabled dynamic virtual private network
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN107835198B (en) Method and device for PPTP traversal in IPv4-IPv6 intercommunication scene and electronic equipment
US20180206111A1 (en) Secure data link for subscriber identification module (sim)-based processor
CN113938317A (en) Network security monitoring method and computer equipment
CN114531279A (en) Private network access method, server and storage medium
CN110120987B (en) WiFi connection method and device
CN111131369B (en) APP use condition transmission method and device, electronic equipment and storage medium
CN108667769B (en) Domain name tracing method and device
US11647387B2 (en) Provision of one-time password after establishing a secure connection with a targeted device
JP4643472B2 (en) Communication method, connection management server, and mobile phone

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20942808

Country of ref document: EP

Kind code of ref document: A1