求助!京东扫码付在Android客户端的接入问题!

新手求助,有谁做过京东扫码付在Android客户端的接入。希望能够提供一份完整的示例demo。注意是二维码扫码支付,即我是商户提供二维码供用户扫码支付。万分感谢!

有 支付宝 等的。。

//要转换的地址或字符串,可以是中文
public void createQRImage(String url)
{
try
{
//判断URL合法性
if (url == null || "".equals(url) || url.length() < 1)
{
return;
}
Hashtable hints = new Hashtable();
hints.put(EncodeHintType.CHARACTER_SET, "utf-8");
//图像数据转换,使用了矩阵转换
BitMatrix bitMatrix = new QRCodeWriter().encode(url, BarcodeFormat.QR_CODE, 300, 300, hints);
int[] pixels = new int[300 * 300];
//下面这里按照二维码的算法,逐个生成二维码的图片,
//两个for循环是图片横列扫描的结果
for (int y = 0; y < 300; y++)
{
for (int x = 0; x < 300; x++)
{
if (bitMatrix.get(x, y))
{
pixels[y * 300 + x] = 0xff000000;
}
else
{
pixels[y * 300 + x] = 0xffffffff;
}
}
}
//生成二维码图片的格式,使用ARGB_8888
Bitmap bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888);
bitmap.setPixels(pixels, 0, 300, 0, 0, 300, 300);
//显示到一个ImageView上面
mIvPayCode.setImageBitmap(bitmap);
}
catch (WriterException e)
{
e.printStackTrace();
}
}

    这个方法可以直接拿去用