Android Question Problems with WxPay SDK (WeChat Pay)

Jiang Jian

Member
Licensed User
Hi, I am from CHINA.

Now in China , WxPay is very useful. I have had no cashies in my pocket for sevral month.

Even some beggars begging with a paper on which printed their barcode of WxPay.

I want to make the WxPay SDK to be a B4A library; and I use the SLC1.03

and I get a compile error in a source code file , but if I compile it to a B4J library ,it can make the jar file successfully but will get a error when creat the xml file .

use B4A SLC:


Starting step: Compiling Java code.
javac 1.8.0_131
C:\Users\HY01\Desktop\WxPayAPI\src\com\github\wxpay\sdk\src\WXPayRequest.java:99: 错误: 找不到符号(Error: could not find signal)
httpPost.setConfig(requestConfig);
^
符号: 方法"(signal: method)" setConfig(RequestConfig)
位置: 类型为"(position: type of )"HttpPost的变量 "( variable)" httpPost
1 个错误


Error.

use B4J SLC:


Starting step: Compiling Java code.
Completed successfully.
Starting step: Creating jar file.
Completed successfully.
Starting step: Creating XML file.
C:\Users\HY01\Desktop\WxPayAPI\src\com\github\wxpay\sdk\src\IWXPayDomain.java:4: 错误: 编码GBK的不可映射字符(character set is not correct)

would someone help me ?

the SDK used some org.apache.http package.

thanks
 

Attachments

  • WxPayAPI.zip
    39.7 KB · Views: 322

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Jiang Jian

Member
Licensed User
I deleted Chinese characters and changed the source file into ANSI code, now B4J compiler is work , but the B4A compiler gets the same error.

B4A could not import the medthod httpPost.setConfig() from httpclient-4.5 to httpclient-4.5.3

could any one help me ?
 
Upvote 0

Jiang Jian

Member
Licensed User
I it not the character set problem. I think it is the http class is different about JAVA and android.

In the Adndroid SDK http library , there is not the setConfig() methord.

the compiler always import the android sdk library and ignore the library that I put in the \libs

How can I do ...
 
Upvote 0

Jiang Jian

Member
Licensed User
Hi, Because these Jars are too large to upload, I deleted them .

There are : commons-codec-1.9;commons-logging-1.2;httpclient-4.5;httpcore-4.4.6;httpmime-4.5;slf4j-api-1.7.25

I do not very clear about how to wrap. But B4J SLC 1.03 does works and make the library successfully.
 
Upvote 0

Jiang Jian

Member
Licensed User
This is the Android SDK
Hi , thanks for your share, but the WX_android_sdk is not what I want.
What I uploaded is the WXpay_sdk, it means you can intergrated your own payoff program without the WX App.
For example, a vending machine, it can complete the payment automaticlly by scan the WXPay barcode on customers cellphone screen .
On this condition , your program does not comunicate with a WXApp , it comunicate with the WxPay Server.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Hi, I am from CHINA.

Now in China , WxPay is very useful. I have had no cashies in my pocket for sevral month.

Even some beggars begging with a paper on which printed their barcode of WxPay
But could Chinese beggars not use paypal like all the beggars of the rest of the world?

PayPal Library exist
 
Upvote 0

Jiang Jian

Member
Licensed User
But could Chinese beggars not use paypal like all the beggars of the rest of the world?

PayPal Library exist

This seems not a technical question, haha , I think Chinese beggars will glad to use paypal when there are enough foreigners in China.

Welcome to China and do not foget take your mobilephone ! :)
 
Upvote 0
Top