Coder Social home page Coder Social logo

myussufz / react-native-ipay88-sdk Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 17.0 2.38 MB

React Native for integrating with iPay88 payment gateway's mobile SDK

JavaScript 16.13% Java 26.34% Objective-C 54.16% Ruby 3.37%
ipay88 react-native sdk ios android javascript ipay88-sdk

react-native-ipay88-sdk's People

Contributors

dependabot[bot] avatar edualm avatar myussufz avatar yk-yong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-ipay88-sdk's Issues

Android Crash with java.lang.SecurityException: getDeviceId:

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)

Warning: componentWillMount has been renamed, and is not recommended for use.

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.

ipay88 has new version for their sdk

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

what does mean "Invalid parameters(Currency not supported by Merchant Account)

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)
image

I don't know why this error is coming.

please help me

Best Regards

Not working when amount more then 1

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);
    }
  };

Support androidx

error: package android.support.annotation does not exist
import android.support.annotation.Nullable;

Bitcode does not found

/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.

Can't find variable: authorizationCode after payment is successed

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"

Building the APK results in an error. It works find in debug mode

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.

  • What went wrong:
    Execution failed for task ':ipay88-sdk:compileReleaseJavaWithJavac'.

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.

  • What went wrong:
    Execution failed for task ':ipay88-sdk:compileReleaseJavaWithJavac'.

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

Response, Request and Backend URL

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.