radiegtya / react-native-midtrans Goto Github PK
View Code? Open in Web Editor NEWMidtrans Mobile SDK for React Native
Midtrans Mobile SDK for React Native
http://dl.bintray.com/pt-midtrans/maven
returns :
<title>502 Bad Gateway</title>saya menjalankan comand react-native run-android
Namun ke;uar eror seperti itu. Semua requitment minimal sudah saya ikuti, apakah ada hal yang perlu saya sesuaikan?
react-native link PaymentProject // bukannya harusnya react-native link react-native-midtrans ?
Is there any plans to support iOS?
Hello everyone. can i set custom header for my merchant base url? because my merchant base url API server there is authorization and token in header. can anyone help me?
i have read here : https://github.com/veritrans/veritrans-android/wiki/Implementation-for-Merchant-Server
but there is no custom header if i want to input authorization and token into my API merchant base url..
can anyone help me?
error: bundling failed: ambiguous resolution: module C:\ReactProject\MyApp\index.js
tries to require react-native
, but there are several files providing this module. You can delete or fix them:
C:\ReactProject\MyApp\node_modules\react-native-midtrans\node_modules\react-native\package.json
C:\ReactProject\MyApp\node_modules\react-native\package.json
BUNDLE [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.
Hi @radiegtya , i follow your instruction but when i run 'react-native run-android' , i got error message "Could not find com.midtrans:corekit:1.4.1-SANDBOX" .
did i miss something on setup ?
Thanks !
hello, i want to ask about the library. when i build using react-native run-android
, i got some trouble like this
`va:10: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:22: error: cannot find symbol
import com.facebook.react.modules.core.ChoreographerCompat;
^
symbol: class ChoreographerCompat
location: package com.facebook.react.modules.core
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:24: error: cannot find symbol
import com.facebook.react.modules.core.ReactChoreographer;
^
symbol: class ReactChoreographer
location: package com.facebook.react.modules.core
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:105: error: cannot find symbol
latestJSBundleLoader = JSBundleLoader.createAssetLoader(getReactApplicationContext(), latestJSBundleFile, false);
^
symbol: method createAssetLoader(ReactApplicationContext,String,boolean)
location: class JSBundleLoader
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:107: error: method createFileLoader in class JSBundleLoader cannot be applied to given types;
latestJSBundleLoader = JSBundleLoader.createFileLoader(latestJSBundleFile);
^
required: Context,String
found: String
reason: actual and formal argument lists differ in length
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:145: error: cannot find symbol
instanceManager.recreateReactContextInBackground();
^
symbol: method recreateReactContextInBackground()
location: variable instanceManager of type ReactInstanceManager
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:196: error: cannot find symbol
ReactApplication reactApplication = (ReactApplication) currentActivity.getApplication();
^
symbol: class ReactApplication
location: class CodePushNativeModule
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:196: error: cannot find symbol
ReactApplication reactApplication = (ReactApplication) currentActivity.getApplication();
^
symbol: class ReactApplication
location: class CodePushNativeModule
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:235: error: package ReactChoreographer does not exist
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
^
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:235: error: package ChoreographerCompat does not exist
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
^
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:235: error: cannot find symbol
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
^
symbol: variable ReactChoreographer
Note: C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
11 errors
:react-native-code-push:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
i am using
"react-native": "0.52.0",
"react-native-midtrans": "0.0.3",
\node_modules\react-native-midtrans\android\src\main\java\com\paymentproject\midtrans\MidtransPackage.java:20: error: method does not override or implement a method from a supertype
@Override
^
1 error
:react-native-midtrans:compileReleaseJavaWithJavac FAILED
I have implemented all the instructions.
allprojects { repositories { maven { url "http://dl.bintray.com/pt-midtrans/maven" } } }
any plans to support expo? would be great if we don't even touch the native code
Apakah lib ini masih dikembangkan dan masih relevant dengan API Midtrans saat ini?
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.