myussufz / react-native-ipay88-sdk Goto Github PK
View Code? Open in Web Editor NEWReact Native for integrating with iPay88 payment gateway's mobile SDK
React Native for integrating with iPay88 payment gateway's mobile SDK
Is there anyone facing android crash with java.lang.SecurityException: getDeviceId with v1.0.5?
iOS is working fine.
Here is the crash log:
Unable to start activity ComponentInfo{com.ipayapp/com.ipay.IpayAcitivity}: java.lang.SecurityException: getDeviceId: The user 10149 does not meet the requirements to access device identifiers.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3356)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3500)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2049)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7523)
at java.lang.reflect.Method.invoke(Native Method)
On the screen where I have the Pay button, I get this warning:
Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.
Please update the following components: %s IPay
Now I'm sure I' have not used componentWillMount
anywhere in my code. So, highlighting this issue here hoping for it to be fixed in future versions.
I'm using ipay88-sdk v1.0.5.
I have tested the current sdk is not working now, as iPay88 has updated the sdk to V1.6.6, new parameters added for delegates and checkout function same to ios as well
Seems like FPX CIMB Clicks is not functioning;
After CIMB Clicks selected, white screens appears and nothing happens.
Terminal Error: Registry returned 404 for GET on https://registry.npmjs.org/react-native-ipay88-sdk
'react-native-ipay88-sdk' is not in the npm registry.
You should bug the author to publish it (or use the name yourself!)
Hello
I'm integrating the ipay88 in my react-native project.
my option of the source code is as following
try {
const data = {};
data.paymentId = "2"; // refer to ipay88 docs
data.merchantKey = "merchantKey";
data.merchantCode ="merchantCode";
data.referenceNo = "Tcee454656";
data.amount = "1.00";
data.currency = 'MYR';
data.productDescription = "Payment for mobile";
data.userName = "test";
data.userEmail = "[email protected]";
data.userContact = "0123456789";
data.remark = "me";
data.utfLang = "UTF-8";
data.country = "MY";
data.backendUrl = "http://haipsy33.test.com/";
const errs = Pay(data);
console.log(errs,'errrr');
if (Object.keys(errs).length > 0) {
console.log(errs,'yyy');
}
} catch (e) {
console.log(e,'ttt');
}
How account key and code was checked in web and it works fine on web site.
For now in mobile (ios and android) the response is as following.
"Invalid parameters(Currency not supported by Merchant Account)
I don't know why this error is coming.
please help me
Best Regards
When I have check the usage of UIWebView by grep command found below -
Binary file ./ipay88-sdk/ios/libipay88sdk.a matches
Binary file ./node_modules/ipay88-sdk/ios/libipay88sdk.a matches
2 Times app removed by apple store because apple removed the usage of UIWebView
Hi,
The payment gateway is not working when I tried to change the amount from "1.00" to "2.00", but is working with amount "1.00", even I try to change other currency such like "USD", "RMB", it not working too. any idea?
parameter:
pay = () => {
try {
const data = {};
data.paymentId = "2"; // refer to ipay88 docs
data.merchantKey = merchantKey;
data.merchantCode = merchantCode;
data.referenceNo = "1234565";
data.amount = "2.00";
data.currency = "MYR";
data.productDescription = "Payment";
data.userName = "MCD SDN BHD";
data.userEmail = "[email protected]";
data.userContact = "0123456789";
data.remark = "me";
data.utfLang = "UTF-8";
data.country = "MY";
data.backendUrl = "http://sample.com";
const errs = Pay(data);
if (Object.keys(errs).length > 0) {
console.log(errs);
}
} catch (e) {
console.log(e);
}
};
error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
Could you please provide description for the required fields in for the MakePayment method?
cannot resolve this since there are no llogs and the errors are undefined the app crashes whenever i click pay buuton
/Build/Products/Debug-iphoneos/libRNIpay88Sdk.a(IpayPayment.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.
How to solve this problem?
I tried to disable bitcode for ipay88 dependency only, but still not working.
I received an email from iPay88 to perform following:
change https://www.mobile88.com/epayment/entry.asp to new domain https://payment.ipay88.com.my/epayment/entry.asp
May I know will we get affected?
the problem is like this, after my payment was successed then it prompt Can't find variable: authorizationCode in my console log and my app get forced to stop and closed. Any solution to solve this?
my successNotify method is same as in readme.md file
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"ipay88-sdk": "^1.0.2"
Task :app:prepareLintJar UP-TO-DATE
Task :app:generateReleaseSources
Task :ipay88-sdk:compileReleaseRenderscript NO-SOURCE
Task :ipay88-sdk:generateReleaseBuildConfig
Task :ipay88-sdk:generateReleaseResValues
Task :ipay88-sdk:generateReleaseResources
Task :ipay88-sdk:packageReleaseResources
Task :ipay88-sdk:generateReleaseRFile
Task :ipay88-sdk:prepareLintJar UP-TO-DATE
Task :ipay88-sdk:generateReleaseSources
Task :ipay88-sdk:javaPreCompileRelease
Task :ipay88-sdk:compileReleaseJavaWithJavac FAILED
/Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:7: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:106: error: cannot find symbol
static void sendEvent(ReactContext reactContext, String eventName, @nullable WritableMap params) {
^
symbol: class Nullable
location: class IPay88Module
2 errors
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 9s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings
41 actionable tasks: 37 executed, 4 up-to-date
An general error occured:
exec: /Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:7: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/Users/olav/Documents/kibo-android/node_modules/ipay88-sdk/android/src/main/java/com/ipay88/IPay88Module.java:106: error: cannot find symbol
static void sendEvent(ReactContext reactContext, String eventName, @nullable WritableMap params) {
^
symbol: class Nullable
location: class IPay88Module
2 errors
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2m 9s
Hi there,
this is not an issue but a question. I am quite new but I am creating a mobile app and I want to integrate it with iPay88. What I don't understand is that iPay88 is asking me to provide them Response, Request and Backend URL but my mobile app does not have those. Do I need to create a web page (e.g. using ASP .NET) to create these pages and link it to my mobile app?
I've encountered the "permission not allow" problem.
After a discussion with Ipay88 support, they said my referrer url is "https://uat-mobile-payment.ipay88.com:8243/PaymentGateway/ipay_mobile_in.jsp" instead of my actual website url.
is it possible my website url is http ??
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.