liqpay / sdk-aos Goto Github PK
View Code? Open in Web Editor NEWLiqPay Android sdk
LiqPay Android sdk
public void onResponceError(final ErrorCode errorCode) {
Maybe Response, not Responce ?
This function written on your documentation
Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=ua.privatbank.paylibliqpay.broadcast flg=0x10 } in ua.privatbank.paylibliqpay.LiqPay$1@159be529
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:924)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5549)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Caused by java.lang.IllegalArgumentException: Receiver not registered: ua.privatbank.paylibliqpay.LiqPay$1@159be529
at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:783)
at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1781)
at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:510)
at ua.privatbank.paylibliqpay.LiqPay$1.onReceive(LiqPay.java:130)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:914)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5549)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Caused by java.lang.IllegalArgumentException
ua.privatbank.paylibliqpay.LiqPay$1.onReceive (LiqPay.java:130)
Starting with the version of Android 10, Google changed access to some permissions. And now there is no way to get permission READ_PHONE_STATE.
If you set targetSdkVersion 29, when you try to open the checkout, you get java.lang.SecurityException: getDeviceId: The user does not meet the requirements to access device identifiers. Even if the user gives permission to READ_PHONE_STATE.
By the way, it is not at all clear why this permission is needed. It is difficult to explain to the user that the application requires access to the phone to pay by card.
Please, attach some documentation to the project.
If there will be some sample codes -> that will be really great.
Thank you!
Ч
Як відправити токенізовані дані в лікпей щоб зразу пройшла оплата?
java.lang.StringIndexOutOfBoundsException: length=773; regionStart=9; regionLength=-10
at java.lang.String.startEndAndLength(String.java:583)
at java.lang.String.substring(String.java:1464)
at ua.privatbank.paylibliqpay.BrowserActivity$1.onLoadResource(BrowserActivity.java:68)
at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:465)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5494)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:691)
at dalvik.system.NativeStart.main(Native Method)
The SDK does not work on this device. The activity starts, then the progress bar is shown, then just a blank screen
some log info:
04-03 16:53:43.121 30944-30944/ua.exist.android I/System.out: lpLog >> https://www.liqpay.com/api/3/checkout
04-03 16:53:43.141 30944-31010/ua.exist.android D/OpenGLRenderer: endAllActiveAnimators on 0x7f71276c00 (ForegroundLinearLayout) with handle 0x7f6fd3b2a0
04-03 16:53:43.141 30944-30944/ua.exist.android I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@281e75f time:38292159
04-03 16:53:43.331 30944-30944/ua.exist.android W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 30944
04-03 16:53:43.331 30944-30944/ua.exist.android I/System.out: lpLog >> https://static.liqpay.com/checkout/170330145629/styles/index.css
04-03 16:53:43.331 30944-30944/ua.exist.android I/System.out: lpLog >> https://static.liqpay.com/checkout/170330145629/js/index.js
04-03 16:53:43.521 30944-30944/ua.exist.android I/System.out: lpLog >> ==== onPageFinished:https://www.liqpay.com/ru/checkout/1491227651994343_46798690_thnhZe5TOlkjGmeQBXIJ
04-03 16:53:43.541 30944-30944/ua.exist.android D/ViewRootImpl: #3 mView = null
04-03 16:53:43.541 30944-30944/ua.exist.android I/System.out: lpLog >> https://static.liqpay.com/checkout/170330145629/img/favicon.ico
04-03 16:53:43.541 30944-30944/ua.exist.android E/ViewRootImpl: sendUserActionEvent() mView == null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.