-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
银联支付崩溃 #24
Comments
你是怎么导入的?以 library 方式的吗? |
@samurai00 |
导入方式本身没关系。我们示例以 library 方式导入是为了避免漏导入东西。你要确保所有需要的 jar 包、assets 文件、.so 文件等等都导入才行。比如银联,除了 jar 包之外,assets 下的 data.bin 和 libs 下的 libentryexpro.so 是必须的。 |
@samurai00 |
@samurai00 |
我这边在这个 github 的 demo 中用你的 charge 试了一下,调起正常,没有崩溃,只是提示“订单无效或已失效”。用的是 Android Studio。 |
@samurai00
然后在我关闭银联支付页面时,点击左上角的叉叉,又报错了这是我的应用没有崩溃,错误log:
请尽快解决一下,虽然我们应用没有崩溃,但是存在潜在的隐患,若是上线支付时崩溃掉,这可真就不好了。。。。 |
这个是银联提供的插件的一个“问题”,他们要求使用 Open Mobile API 来构建项目,否则就会报这个错。你要去掉这个错的话,可以下载这个 http://pan.baidu.com/s/1o73HCwU |
@samurai00 |
放好之后,有选择这个来 build 吗?项目配置里 |
@samurai00 |
我们的项目是建立在5.0就是21以上sdk,若是选择了 Open Mobile API 4.4,我们项目的依赖库appcompat_v7就是就会报错不能编译,有没有 Open Mobile API 5,0以上的呢? |
@samurai00 |
我也出现了同样的问题,这个怎么完美解决,求解 |
@LuoGuoXin 没解决,他们说的方法解决不了,也不理人了,应用不崩溃就没管了 |
https://github.com/seek-for-android/pool/wiki/UsingSmartCardAPI#setting-up-the-environment |
崩溃Log:
charge信息:
{
"charge":"{"id":"ch_nDaX5814WTGO4OmLSGGuzvvL","object":"charge","created":1458642689,"livemode":true,"paid":false,"refunded":false,"app":"app_aDqPO88ebzbL0OOy","channel":"upacp","orderNo":"12345678","clientIp":"127.0.0.1","amount":12300,"amountSettle":12300,"currency":"cny","subject":"机票","body":"机票","timeExpire":1458646289,"refunds":{"object":"list","url":"/v1/charges/ch_nDaX5814WTGO4OmLSGGuzvvL/refunds","hasMore":false,"data":[]},"amountRefunded":0,"metadata":{},"credential":{"object":"credential","upacp":{"tn":"201603221811119348378","mode":"00"}},"extra":{}}"
}
请尽快回复,谢谢!
一套调用方式,支付宝正常!
支付宝charge:
{
"charge":"{"id":"ch_9KuTuPH0yzXDq54WjTPSSm9K","object":"charge","created":1458642640,"livemode":true,"paid":false,"refunded":false,"app":"app_aDqPO88ebzbL0OOy","channel":"alipay","orderNo":"12345678","clientIp":"127.0.0.1","amount":12300,"amountSettle":12300,"currency":"cny","subject":"机票","body":"机票","timeExpire":1458729040,"refunds":{"object":"list","url":"/v1/charges/ch_9KuTuPH0yzXDq54WjTPSSm9K/refunds","hasMore":false,"data":[]},"amountRefunded":0,"metadata":{},"credential":{"object":"credential","alipay":{"orderInfo":"service\u003d"mobile.securitypay.pay"\u0026_input_charset\u003d"utf-8"\u0026notify_url\u003d"https%3A%2F%2Fapi.pingxx.com%2Fnotify%2Fcharges%2Fch_9KuTuPH0yzXDq54WjTPSSm9K"\u0026partner\u003d"2088121009223318"\u0026out_trade_no\u003d"12345678"\u0026subject\u003d"机票"\u0026body\u003d"机票"\u0026total_fee\u003d"123.00"\u0026payment_type\u003d"1"\u0026seller_id\u003d"2088121009223318"\u0026it_b_pay\u003d"2016-03-23 18:30:40"\u0026sign\u003d"XCsj37UC4V7aD1D%2BCE1NDJqJqtZYY1TCJQ%2FfhjqBk8Kqj0jTZfm7LTNluYdPAzBeNq0Yg7Gij2FAulIXzyTmDraHtLQMUrknHJE5Zp%2BB5RtqTL72V4cIo52inFhhngwcC0Jy8WVTdAOuV7%2F0RfXShuo5RzndaoPlps7EBItMEJE%3D"\u0026sign_type\u003d"RSA""}},"extra":{}}"
}
The text was updated successfully, but these errors were encountered: