Virtual currency docking with Alipay
Alipay will ban virtual currency transactions. Virtual currency in China's law does not specify that the law is not illegal. Strong> recently issued a statement that Alipay banned the trading of virtual currencies, but most of them expressed support for Alipay's behavior, saying Alipay was right because there are many uses of virtual currency, which can effectively avoid being exploited by lawless elements. p> Although there is no clear regulation on virtual currency, there are some behaviors such as pyramid schemes in some virtual currencies. There are various forms of currencies, which will lead to various frauds. For those who want to invest, they must be cautious and wait until they know all about them before making a decision< however, with the rapid development of the Internet, maybe virtual currency will develop better strong>
virtual currency is a kind of technical means, there is no such thing as whether to cheat or not Strong> in recent years, mobile phone development has been developing faster and faster, and there are also changes in the way of payment. In the life, a small number of people have paid for paper money. Most of them have started using Alipay, WeChat and so on, because they are popular with the public because of their convenience and speed, especially Alipay is the way that many people will pay when they pay. Many other procts have been used to facilitate many people, but Alipay has recently banned the trading of virtual currencies. P> Alipay is also making this decision in order to safeguard the interests of everyone. We should also pay attention to investing when we invest normally, so we can only buy it after thorough understanding. can not blindly listen to other people's views and invest carefully. strong>
Alipay's money transfer to the bank account specific operation
landing Alipay -- cash in - enter the amount - enter the payment password - complete
PS: if there is no binding bank account, set up first. Step is
log on Alipay -- cash out -- set up bank account -- finish
10 10, two major domestic payment giants Alipay and WeChat simultaneously voicing, prohibiting the use of platforms in virtual currency transactions. Why did Alipay and WeChat voice at the same time? The reporter understands that this may be related to a dynamic trend of a virtual trading platform in the near future. P>
Alipay and WeChat: once found and resolutely retreated,
has repeatedly banned payment agencies to provide virtual
services. In fact, the central bank and its branches have repeatedly requested payment agencies not to provide services for virtual currency transactions.
as early as the end of 2013, the central bank and other ministries and commissions issued the notice on preventing bitcoin risks, which made it clear that all financial institutions and Payment institutions should not price procts or services with bitcoin, buy or sell bitcoin or act as central counterparties, underwrite insurance business related to bitcoin or include bitcoin in the scope of insurance liability, Shall not directly or indirectly provide customers with other services related to bitcoin, including: providing customers with bitcoin registration, trading, clearing, settlement and other services; Accept bitcoin or use bitcoin as a payment and settlement tool; Carry out bitcoin and RMB and foreign currency exchange services; Carry out bitcoin storage, custody, mortgage and other services; Issuing financial procts related to bitcoin; Take bitcoin as the investment target of trust, fund, etc
in September 2017, the central bank and other seven departments jointly issued the announcement on preventing the financing risk of token issuance, which stipulates that financial institutions and non bank payment institutions shall not directly or indirectly provide procts or services such as account opening, registration, trading, clearing and settlement for token issuance financing and "virtual currency"
similarly, the business management department of the central bank issued a notice in January 2018, requiring all legal person Payment institutions under its jurisdiction to carry out self inspection and rectification work in their own units and branches, forbidding to provide services for virtual currency transactions, and taking effective measures to prevent payment channels from being used for virtual currency transactions
you can buy
you recharge to Alipay, he buys you the selected application
thank you for recharging the network privileges that are difficult and need many
Oh, I said the recharge should be based on the actual situation.
see how the application of your application is
in fact, the official has provided the installation guide,
there is a PDF in it, which describes the user guide in detail. It is written in detail and can be used as a reference
after downloading, we mainly use Alipay in Android (20104) directory_ Alipay in plugin.jar and appdemo / assets_ plugin223_ 0309.apk, these two files are Alipay API and installation package that we can't modify.
2. Merchant signing
the current security mechanism is like this, the client needs to request verification with the server before further operation, and OAuth is also like this
Open Alipay, click on the signing entrance, select " Application procts;, Fill in and wait for approval to obtain merchant ID and account ID
when signing, you also need to provide real name authentication and upload application. So I suggest that we do the application first and finally integrate Alipay.
I have been waiting for about 1-2 days for the audit, but the audit failed, and the reply is application type, which should be & quot; Virtual currency;, I changed it to the one that passed the examination automatically
3. Key configuration
decompress openssl-0.9.8k_ Win32 (RSA key generation tool). Zip, open CMD, command line into openssl-0.9.8k_ Win32 (RSA key generation tool) & #92; Run
OpenSSL genrsa - out RSA_ private_ Key. PEM 1024
generate RSA_ private_ Key.pem file< (2) execute
OpenSSL RSA - in RSA_ private_ key.pem -pubout -out rsa_ public_ Key. PEM
generate RSA_ public_ Key.pem file
(3) after executing
OpenSSL pkcs8 - topk8 - Information PEM - in RSA_ private_ Key. PEM - outform PEM - nocrypt
Convert RSA private key to pkcs8 format, remove the two lines of begin and end, out the contents and save them in a TXT, such as RSA_ private_ pkcs8_ Key.txt (I don't seem to use this)
Open RSA_ public_ Key.pem, that is, the merchant's public key, is copied into a new TXT file. Delete the file header - --- begin public key -- "and end public key --" -- and blank space and line feed. Change it into a string and save the txt file. Then click "key management" on the right side of the "my merchant services" switch card on the website, and there is a & quot; Upload merchant public key (RSA) & quot; Choose to upload the txt file.
OK, the server configuration is OK, because there was no screenshot before, but now it's not good. If you don't understand, please refer to the official document
4. Reference jar and include installation package
(1) create new Android project
(2)_ Plug in.jar to the LIBS directory of the project, and find and reference the jar through add external jars in the Java build path
(3)_ plugin223_ 0309. APK install the package to the assets directory, which will be used later in the configuration path< br />\
if there are no LIBS and assets directories, manually create two directories
5. Call code collation
here we want to seriously refer to the appdemo in the document, we build a package com.tianxia.lib.baseworld.alipay, and merge all the source code under the com.alipay.android.appdemo4 package of appdemo into our own package just now, as well as the resource files under the res directory into our project res
alixdemo.java, proctlistadapter.java and procts.java are sample classes, which can be deleted after reference
partnerconfig.java is a configuration class, which configures some configuration parameters of merchants
other classes are serious reference classes, which can be used directly
the code of partnerconfig.java is as follows:
public class partnerconfig{ // Cooperative merchant ID. After signing ms.alipay.com with Alipay account, get it on account information page. public static final String PARTNER = " xxx"; // Account ID. After signing ms.alipay.com with Alipay account, get it on account information page. public static final String SELLER = " xxx"; // RSA private key, or RSA_ private_ The first line, the last line, the space and the newline are removed from the key.pem to form a string public static final String RSA_ PRIVATE = " xxx"; // The Alipay (RSA) public key is acquired on the key management page after signing the Alipay account with ms.alipay.com. public static final String RSA_ ALIPAY_ PUBLIC = " xxx"; // The following configuration tells the application to go to the assets directory to find the installation package public static final String ALIPAY_ PLUGIN_ NAME =" alipay_ plugin223_ 0309.apk";}
in alixdemo, the code is the final calling code. In onItemClick (AdapterView & lt& gt; Arg0, view arg1, int arg2, long ARG3) {}, let's extract the core code.