apinprastya / flutrans Goto Github PK
View Code? Open in Web Editor NEWMidtrans flutter plugin
License: BSD 2-Clause "Simplified" License
Midtrans flutter plugin
License: BSD 2-Clause "Simplified" License
what is this?how can i find my URL BASE for sandbox mode?
customer detail like email and name phone not work and not showing on midtrans dashboard, but it showing on VSC console log,
please add adddress to
hei, on IOS when makePayment, its just return finally on console, no effect, can you help me?
This error occurred when I tried this library.
''D/FlutransPlugin(13880): ERROR Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?''
I tried editing your code in my local folder but I couldn't finish it. Please your help
I'm following https://github.com/apinprastya/flutrans/blob/master/example/lib/main.dart,
But when i run it i get this
E/MidtransSDK( 1476): User details not available.
D/OkHttp ( 1476): --> POST http://192.168.64.2/MyLF_API/api/charge
D/OkHttp ( 1476): Content-Type: application/json
D/OkHttp ( 1476): Content-Length: 313
D/OkHttp ( 1476): Accept: application/json
D/OkHttp ( 1476): {"customer_details":{},"custom_field1":"ANYCUSTOMFIELD","item_details":[{"id":"5c18ea1256f67560cb6a00cdde3c3c7a81026c29","name":"USB FlashDisk","price":7500.0,"quantity":2}],"transaction_details":{"currency":"IDR","gross_amount":7500.0,"order_id":"1571826326803"},"user_id":"29f3305b-b21c-49ab-b291-7692cde48068"}
D/OkHttp ( 1476): --> END POST (313-byte body)
D/OkHttp ( 1476): <-- 404 Not Found http://192.168.64.2/MyLF_API/api/charge (7364ms)
D/OkHttp ( 1476): Date: Wed, 23 Oct 2019 10:31:23 GMT
D/OkHttp ( 1476): Server: Apache/2.4.41 (Unix) OpenSSL/1.1.1c PHP/7.3.9 mod_perl/2.0.8-dev Perl/v5.16.3
D/OkHttp ( 1476): X-Powered-By: PHP/7.3.9
D/OkHttp ( 1476): Set-Cookie: ci_session=928c666da5ce9ce0ab5ac33aafcc98b9a30c12f8; expires=Wed, 23-Oct-2019 12:31:24 GMT; Max-Age=7200; path=/; HttpOnly
D/OkHttp ( 1476): Expires: Thu, 19 Nov 1981 08:52:00 GMT
D/OkHttp ( 1476): Cache-Control: no-store, no-cache, must-revalidate
D/OkHttp ( 1476): Pragma: no-cache
D/OkHttp ( 1476): Content-Length: 770
D/OkHttp ( 1476): Keep-Alive: timeout=5, max=100
D/OkHttp ( 1476): Connection: Keep-Alive
D/OkHttp ( 1476): Content-Type: application/json
D/OkHttp ( 1476): <!DOCTYPE html>
D/OkHttp ( 1476): <html class="no-js">
D/OkHttp ( 1476): <head>
D/OkHttp ( 1476): <meta charset="utf-8">
D/OkHttp ( 1476):
D/OkHttp ( 1476): <!-- Responsive viewport declaration -->
D/OkHttp ( 1476): <meta name="viewport" content="width=device-width, initial-scale=1">
D/OkHttp ( 1476):
D/OkHttp ( 1476): <!-- Cross compatibility -->
D/OkHttp ( 1476): <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
D/OkHttp ( 1476): <title>Midtrans</title>
D/OkHttp ( 1476): <meta name="description" content=""/>
D/OkHttp ( 1476):
D/OkHttp ( 1476): <link rel="stylesheet" href="//v2/assets/css/all.css"/>
D/OkHttp ( 1476):
D/OkHttp ( 1476): </head>
D/OkHttp ( 1476): <body>
D/OkHttp ( 1476): <div class="container">
D/OkHttp ( 1476): <div class="center desc"><p>404</p></div>
D/OkHttp ( 1476): <div class="center click"><h3>
D/OkHttp ( 1476): <a href="#">- Ups -</a>
D/OkHttp ( 1476): </h3></div>
D/OkHttp ( 1476): </div>
D/OkHttp ( 1476): <footer>
D/OkHttp ( 1476): <p class="center">© <script>document.write(new Date().getFullYear())</script> PT Midtrans. All Rights Reserved</p>
D/OkHttp ( 1476): </footer>
D/OkHttp ( 1476):
D/OkHttp ( 1476): </body>
D/OkHttp ( 1476): </html>
D/OkHttp ( 1476): <-- END HTTP (770-byte body)
Can you send me sample of the server side.
2019-11-17 10:11:27.413611+0700 Runner[54881:296535] flutter: Observatory listening on http://127.0.0.1:56318/JsNNieIkVc8=/
2019-11-17 10:11:32.384656+0700 Runner[54881:296372] finally
2019-11-17 10:11:38.175841+0700 Runner[54881:296372] Could not load the "default.png" image referenced from a nib in the bundle with identifier "org.cocoapods.MidtransKit"
2019-11-17 10:11:38.182201+0700 Runner[54881:296372] *** Assertion failure in -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3900.12.16/UIApplication.m:5316
2019-11-17 10:11:38.199568+0700 Runner[54881:296372] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23c4f02e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50b97b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c4eda8 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff256c9b61 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 UIKitCore 0x00007fff47851017 -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:] + 255
5 UIKitCore 0x00007fff478514ba -[UIApplication statusBar] + 24
6 Foundation 0x00007fff256f2bca -[NSObject(NSKeyValueCoding) valueForKey:] + 317
7 Runner 0x0000000102fef5c1 +[MidtransDeviceHelper deviceCurrentNetwork] + 145
8 Runner 0x0000000103028448 -[NSDictionary(SNPUITrackingManager) SNPUITrackingManageraddDefaultParameter] + 424
9 Runner 0x0000000103029003 -[SNPUITrackingManager trackEventName:additionalParameters:] + 131
10 Runner 0x00000001030d148b -[VTPaymentListController viewDidLoad] + 795
11 UIKitCore 0x00007fff471cdb25 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 83
12 UIKitCore 0x00007fff471d2a7e -[UIViewController loadViewIfRequired] + 1084
13 UIKitCore 0x00007fff47136b6c -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 160
14 UIKitCore 0x00007fff47136e6c -[UINavigationController _startTransition:fromViewController:toViewController:] + 140
15 UIKitCore 0x00007fff47137d36 -[UINavigationController _startDeferredTransitionIfNeeded:] + 868
16 UIKitCore 0x00007fff471390a1 -[UINavigationController __viewWillLayoutSubviews] + 150
17 UIKitCore 0x00007fff47119ed7 -[UILayoutContainerView layoutSubviews] + 217
18 UIKitCore 0x00007fff47d34d01 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2478
19 QuartzCore 0x00007fff2b138d41 -[CALayer layoutSublayers] + 255
20 QuartzCore 0x00007fff2b13ef33 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 517
21 UIKitCore 0x00007fff47d1fe79 -[UIView(Hierarchy) layoutBelowIfNeeded] + 980
22 UIKitCore 0x00007fff470f2eea -[_UISheetPresentationController _sheetLayoutInfoLayout:] + 48
23 UIKitCore 0x00007fff470f0692 -[_UISheetLayoutInfo _layout] + 360
24 UIKitCore 0x00007fff470f4cba __54-[_UISheetPresentationController transitionWillBegin:]_block_invoke_2 + 52
25 UIKitCore 0x00007fff47d26e6a +[UIView(Animation) performWithoutAnimation:] + 84
26 UIKitCore 0x00007fff470f4bf7 __54-[_UISheetPresentationController transitionWillBegin:]_block_invoke.337 + 120
27 UIKitCore 0x00007fff47200d3e -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 294
28 UIKitCore 0x00007fff471fd060 -[_UIViewControllerTransitionContext __runAlongsideAnimations] + 263
29 UIKitCore 0x00007fff47d26c93 __63+[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:]_block_invoke + 16
30 UIKitCore 0x00007fff47cf7fc8 -[UIViewAnimationState _runAlongsideAnimations] + 24
31 UIKitCore 0x00007fff47cf6d12 -[UIViewAnimationState pop] + 37
32 UIKitCore 0x00007fff47cf40d6 +[UIViewAnimationState popAnimationState] + 62
33 UIKitCore 0x00007fff47d286a4 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 650
34 UIKitCore 0x00007fff47d28bd9 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 99
35 UIKitCore 0x00007fff47cef681 __50-[UITransitionView _startTransition:withDuration:]_block_invoke.169 + 66
36 UIKitCore 0x00007fff47d29164 +[UIView(UIViewAnimationWithBlocks) conditionallyAnimate:withAnimation:layout:completion:] + 76
37 UIKitCore 0x00007fff47cef065 -[UITransitionView _startTransition:withDuration:] + 699
38 UIKitCore 0x00007fff47ceeafd -[UITransitionView transition:fromView:toView:removeFromView:] + 2721
39 UIKitCore 0x00007fff471f9072 -[UIViewControllerBuiltinTransitionViewAnimator animateTransition:] + 1220
40 UIKitCore 0x00007fff4720190f ___UIViewControllerTransitioningRunCustomTransition_block_invoke_2 + 54
41 UIKitCore 0x00007fff47319913 +[UIInputResponderController _pinInputViewsForInputResponderController:onBehalfOfResponder:duringBlock:] + 99
42 UIKitCore 0x00007fff472018a3 ___UIViewControllerTransitioningRunCustomTransition_block_invoke.645 + 180
43 UIKitCore 0x00007fff47d26b95 +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] + 175
44 UIKitCore 0x00007fff47201729 _UIViewControllerTransitioningRunCustomTransition + 553
45 UIKitCore 0x00007fff470e30c6 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.465 + 2632
46 UIKitCore 0x00007fff47858d48 _runAfterCACommitDeferredBlocks + 352
47 UIKitCore 0x00007fff478494ec _cleanUpAfterCAFlushAndRunDeferredBlocks + 248
48 UIKitCore 0x00007fff47879365 _afterCACommitHandler + 85
49 CoreFoundation 0x00007fff23bb1617 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
50 CoreFoundation 0x00007fff23bac0ae __CFRunLoopDoObservers + 430
51 CoreFoundation 0x00007fff23bac72a __CFRunLoopRun + 1514
52 CoreFoundation 0x00007fff23babe16 CFRunLoopRunSpecific + 438
53 GraphicsServices 0x00007fff38438bb0 GSEventRunModal + 65
54 UIKitCore 0x00007fff4784fb48 UIApplicationMain + 1621
55 Runner 0x0000000102fe1880 main + 112
56 libdyld.dylib 0x00007fff51a1dc25 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Before i post here , i do some research and found this https://stackoverflow.com/questions/57801484/app-called-statusbar-or-statusbarwindow-on-uiapplication
After adding android/app/src/main/res/values/styles.xml its trhowing error
Launching lib\main.dart on Android SDK built for x86 in debug mode... Configuration 'compile' in project ':flutrans' is deprecated. Use 'implementation' instead.
myapp\android\app\src\main\AndroidManifest.xml:17:9-33 Error: Attribute application@label value=(myapp) from AndroidManifest.xml:17:9-33is also present at [com .github.stfalcon:smsverifycatcher:0.3.1] AndroidManifest.xml:13:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:15:5-38:19 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(myapp) from AndroidManifest.xml:17:9-33 is also present at [com.github.stfalcon:smsverifycatcher:0.3.1] AndroidManifest.xml:13:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:15:5-38:19 to override.
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org BUILD FAILED in 10s Gradle build failed: 1 Exited (sigterm)
After adding tools:replace="android:label", another error cooming up.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.8.2, on Microsoft Windows [Version 10.0.17134.345], locale en-ID)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] VS Code (version 1.28.0)
[√] Connected devices (1 available)
• No issues found!
I'm setting the BASE URL as sandbox url. But when I got the token, the library check it with Production URL. How to fix this ?
Is this package support using SnapToken to pay using Gopay?
Thanks.
kenapa untuk versi sanboxnya kgak di bikin? responnya pengembaliannya langsung ke production
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.