METHOD AND DEVICE FOR DETECTING FUND TRANSACTION ROUTE IN ELECTRONIC PAYMENT PROCESS
A method for detecting a transaction route includes generating an actual route code based on a transaction identifier associated with a transaction, the actual route code representing an actual transaction route for the transaction. The method also includes obtaining a standard route code corresponding to the transaction identifier and confirming correctness of the actual transaction route of the transaction by comparing the actual route code with the standard route code.
1 . A method for detecting a transaction route, comprising:
generating an actual route code based on a transaction identifier associated with a transaction, the actual route code representing an actual transaction route for the transaction;
obtaining a standard route code corresponding to the transaction identifier; and
confirming correctness of the actual transaction route of the transaction by comparing the actual route code with the standard route code.
2 . The method of claim 1 , wherein the generating an actual route code comprises:
obtaining, from a database and based on the transaction identifier, information about one or more transaction accounts and a transaction sequence associated with the transaction;
obtaining one or more account codes each corresponding to one of the one or more transaction accounts; and
combining, based on the transaction sequence, the account codes of the transaction accounts to generate the actual route code.
3 . The method of claim 2 , wherein the obtaining an account code corresponding to one of the one or more transaction accounts comprises:
obtaining a type code of the transaction account;
when the type code is a first type code, determining that the account code is a combination of the type code and an account ID of the transaction account; and
when the type code is a second type code, determining that the account code is the type code.
4 . The method of claim 1 , wherein the obtaining comprises:
obtaining a transaction code corresponding to the transaction identifier; and
obtaining a standard route code corresponding to the transaction code.
5 . The method of claim 1 , wherein
the transaction identifier is a transaction serial number.
6 . A non-transitory computer-readable storage medium configured with instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
generating an actual route code based on a transaction identifier associated with a transaction, the actual route code representing an actual transaction route for the transaction;
obtaining a standard route code corresponding to the transaction identifier; and
confirming correctness of the actual transaction route of the transaction by comparing the actual route code with the standard route code.
7 . The non-transitory computer-readable storage medium of claim 6 , wherein the generating comprises:
obtaining, from a database and based on the transaction identifier, information about one or more transaction accounts and a transaction sequence associated with the transaction;
obtaining one or more account codes each corresponding to one of the one or more transaction accounts; and
combining, based on the transaction sequence, the account codes of the transaction accounts to generate the actual route code.
8 . The non-transitory computer-readable storage medium of claim 7 , wherein the obtaining an account code corresponding to one of the one or more transaction accounts comprises:
obtaining a type code of the transaction account;
when the type code is a first type code, determining that the account code is a combination of the type code and an account ID of the transaction account; and
when the type code is a second type code, determining that the account code is the type code.
9 . The non-transitory computer-readable storage medium of claim 6 , wherein the obtaining comprises:
obtaining a transaction code corresponding to the transaction identifier; and
obtaining a standard route code corresponding to the transaction code.
10 . The non-transitory computer-readable storage medium of claim 6 , wherein
the transaction identifier is a transaction serial number.
11 . A system comprising a processor and a non-transitory computer-readable storage medium storing instructions executable by the processor to cause the system to perform operations comprising:
generating an actual route code based on a transaction identifier associated with a transaction, the actual route code representing an actual transaction route for the transaction;
obtaining a standard route code corresponding to the transaction identifier; and
confirming correctness of the actual transaction route of the transaction by comparing the actual route code with the standard route code.
12 . The system of claim 11 , wherein the generating comprises:
obtaining, from a database and based on the transaction identifier, information about one or more transaction accounts and a transaction sequence associated with the transaction;
obtaining one or more account codes each corresponding to one of the one or more transaction accounts; and
combining, based on the transaction sequence, the account codes of the transaction accounts to generate the actual route code.
13 . The system of claim 12 , wherein the obtaining an account code corresponding to one of the one or more transaction accounts comprises:
obtaining a type code of the transaction account;
when the type code is a first type code, determining that the account code is a combination of the type code and an account ID of the transaction account; and
when the type code is a second type code, determining that the account code is the type code.
14 . The system of claim 11 , wherein the obtaining comprises:
obtaining a transaction code corresponding to the transaction identifier; and
obtaining a standard route code corresponding to the transaction code.
15 . The system of claim 11 , wherein
the transaction identifier is a transaction serial number.