https://www.x.com/developers/community/blogs/ppmacole/using-callback-api
I am trying to integrate PayPal MECL with instant update referring to the url above.
There is a problem, when I set express checkout with callback.
I got a token after set checkout.
But, the url that I build with the token load sandbox login page like below screen shot.
http://i.stack.imgur.com/8I7Aa.png
I set request below
• ADDROVERRIDE=0
• ALLOWNOTE=0
• ALLOWPUSHFUNDING=
• BANKTXNPENDINGURL=
• BRANDNAME=
• BUTTONSOURCE=AngellEYE_PHPClass
• BUYEREMAILOPTIONENABLE=
• BUYERID=
• BUYERREGISTRATIONDATE=
• BUYERUSERNAME=
• CALLBACK=http://ip/en/index.php/api/paypal/eccallback
• CALLBACKTIMEOUT=3
• CALLBACKVERSION=85.0
• CANCELURL=http://cancelUrl
• CHANNELTYPE=Merchant
• CUSTOMERSERVICENUMBER=
• EMAIL=
• GIFTMESSAGEENABLE=
• GIFTRECEIPTENABLE=
• GIFTWRAPAMOUNT=
• GIFTWRAPENABLE=
• GIFTWRAPNAME=
• GIROPAYCANCELURL=
• GIROPAYSUCCESSURL=
• HDRBACKCOLOR=
• HDRBORDERCOLOR=
• HDRIMG=
• LANDINGPAGE=Billing
• LOCALECODE=US
• L_PAYMENTREQUEST_0_AMT0=28.00
• L_PAYMENTREQUEST_0_ITEMCATEGORY0=Physical
• L_PAYMENTREQUEST_0_NAME0=METALICPUNCHBLACK
• L_PAYMENTREQUEST_0_NUMBER0=lm011
• L_PAYMENTREQUEST_0_QTY0=3
• L_PAYMENTREQUEST_0_TAXAMT0=0
• L_SHIPPINGOPTIONAMOUNT0=6.99
• L_SHIPPINGOPTIONAMOUNT1=12.89
• L_SHIPPINGOPTIONISDEFAULT0=1
• L_SHIPPINGOPTIONISDEFAULT1=0
• L_SHIPPINGOPTIONLABEL0=normal
• L_SHIPPINGOPTIONLABEL1=express
• L_SHIPPINGOPTIONNAME0=normal
• L_SHIPPINGOPTIONNAME1=express
• L_SURVEYCHOICE0=Choice1
• L_SURVEYCHOICE1=Choice2
• L_SURVEYCHOICE2=Choice3
• L_SURVEYCHOICE3=etc
• MAXAMT=140.99
• METHOD=SetExpressCheckout
• NOSHIPPING=0
• NOTETOBUYER=
• PAGESTYLE=button
• PAYFLOWCOLOR=
• PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD=InstantPaymentOnly
• PAYMENTREQUEST_0_ALLOWPUSHFUNDING=
• PAYMENTREQUEST_0_AMT=90.99
• PAYMENTREQUEST_0_CURRENCYCODE=USD
• PAYMENTREQUEST_0_CUSTOM=
• PAYMENTREQUEST_0_DESC=
• PAYMENTREQUEST_0_HANDLINGAMT=0
• PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED=
• PAYMENTREQUEST_0_INVNUM=
• PAYMENTREQUEST_0_ITEMAMT=84.00
• PAYMENTREQUEST_0_NOTETEXT=
• PAYMENTREQUEST_0_NOTIFYURL=
• PAYMENTREQUEST_0_PAYMENTACTION=
• PAYMENTREQUEST_0_PAYMENTREQUESTID=
• PAYMENTREQUEST_0_SELLERID=
• PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=
• PAYMENTREQUEST_0_SELLERUSERNAME=YongnamsStore
• PAYMENTREQUEST_0_SHIPDISCAMT=
• PAYMENTREQUEST_0_SHIPPINGAMT=6.99
• PAYMENTREQUEST_0_SHIPTOCITY=
• PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=
• PAYMENTREQUEST_0_SHIPTONAME=
• PAYMENTREQUEST_0_SHIPTOPHONENUM=
• PAYMENTREQUEST_0_SHIPTOSTATE=
• PAYMENTREQUEST_0_SHIPTOSTREET=
• PAYMENTREQUEST_0_SHIPTOSTREET2=
• PAYMENTREQUEST_0_SHIPTOZIP=
• PAYMENTREQUEST_0_TAXAMT=
• PWD=xxxx
• REQCONFIRMSHIPPING=0
• RETURNURL=http://returnUrl
• SIGNATURE=AJFQuv....
• SOLUTIONTYPE=Mark
• SURVEYENABLE=
• SURVEYQUESTION=
• TOKEN=
• TOTALTYPE=Total
• USER=z8_135...om
• VERSION=85.0
If I remove callback url, everything is fine.
Thanks in advance!
You need to make sure you're logged into your http://developer.paypal.com account in another tab in order to test Express Checkout in the sandbox. Otherwise, this window you're seeing is what you get.
Related
I am experiencing an issue to send messages from the advertising device to the browser device(Reader) and getting an error like this-
Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: com/event. Response ID: 0
The steps followed are -
Advertiser advertises using a key.
Browser establishes a connection.
Advertiser sends a message using the following code of NearByservice package -
/// Sends a message encapsulated in a Data instance to nearby peers.
FutureOr sendMessage(String deviceID, String message) async {
await _channel.invokeMethod(_sendMessage, <String, dynamic>{
'deviceId': deviceID,
'message': message,
});
And getting the above error mentioned in the title. Assumed some environmental issues and tried to clean up project, rebuilt and faced the same issue.
JFYI -
After executing "flutter doctor -v", the following logs were received -
[✓] Flutter (Channel master, 3.1.0-0.0.pre.1487, on macOS 12.4 21F79 darwin-x64, locale en-BD)
• Flutter version 3.1.0-0.0.pre.1487 on channel master at /Users/imac/Flutter_Projects/Flutter_SDK/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 20217092c1 (4 days ago), 2022-07-02 23:49:08 -0400
• Engine revision 51dc113c3f
• Dart version 2.18.0 (build 2.18.0-249.0.dev)
• DevTools version 2.15.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/imac/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 13F17a
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] Connected device (4 available)
• SM G960F (mobile) • 2295dc5c4a0d7ece • android-arm64 • Android 10 (API 29)
• SM N950F (mobile) • ce061716a909a80e0d7e • android-arm64 • Android 9 (API 28)
• macOS (desktop) • macos • darwin-x64 • macOS 12.4 21F79 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.114
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Can anyone support this to accomplish please?
After I updated flutter to the new version (3.0.1), I needed to install gradle (7.4) more than once in the same week, because whenever I run Flutter App it gets stuck at Running Gradle task 'assembleDebug'.
The app was working and running normally previously
/home/alissar/Downloads/flutter_linux_2.5.3-stable/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, 3.0.1, on Ubuntu 21.04 5.11.0-49-generic, locale en_US.UTF-8)
• Flutter version 3.0.1 at /home/alissar/Downloads/flutter_linux_2.5.3-stable/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision fb57da5f94 (4 weeks ago), 2022-05-19 15:50:29 -0700
• Engine revision caaafc5604
• Dart version 2.17.1
• DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /home/alissar/Android/Sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_HOME = /home/alissar/Android/Sdk
• Java binary at: /home/alissar/Downloads/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 12.0.0-3ubuntu1~21.04.2
• cmake version 3.18.4
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2020.3)
• Android Studio at /home/alissar/Downloads/android-studio
• Flutter plugin version 61.0.2
• Dart plugin version 203.8430
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.67.2)
• VS Code at /usr/share/code
• Flutter extension version 3.36.0
[✓] Connected device (3 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Linux (desktop) • linux • linux-x64 • Ubuntu 21.04 5.11.0-49-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 102.0.5005.61
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Process finished with exit code 0
I have created this class.But I am getting this error
Functions must have an explicit list of parameters. Try adding a parameter list
class DatabaseHelper{
static late DatabaseHelper? _databaseHelper;
factory DatabaseHelper{
if(_databaseHelper==null ){
_databaseHelper=DatabaseHelper.internal();
return _databaseHelper!;
}else{
return _databaseHelper!;
}
}
DatabaseHelper.internal();
}
What I tried
Upgrade Flutter
Upgrade Android Studio
Invalidate Cache/Restart
flutter clean
Switch between channels
Flutter Doctor output
[√] Flutter (Channel beta, 2.5.0-5.2.pre, on Microsoft Windows [Version 10.0.19042.1110], locale tr-TR)
• Flutter version 2.5.0-5.2.pre at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 19c61fed0d (4 days ago), 2021-08-18 17:10:31 -0700
• Engine revision 7a4c4505f6
• Dart version 2.14.0 (build 2.14.0-377.7.beta)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\alige\AppData\Local\Android\sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[√] VS Code (version 1.59.1)
• VS Code at C:\Users\alige\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.25.0
[√] Connected device (3 available)
• SM G532F (mobile) • 4200c1b8c4d94413 • android-arm • Android 6.0.1 (API 23)
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
• Edge (web) • edge • web-javascript • Microsoft Edge 92.0.902.78
• No issues found!
No need to update your IDE or Flutter.
You're defining a Factory constructor, but it's missing the parenthesis at the end of it. It's defined as a class, which it isn't. just add the missing parenthesis like this, so it behaves as a function, and the error will be gone:
class DatabaseHelper {
static late DatabaseHelper? _databaseHelper;
factory DatabaseHelper() {
if (_databaseHelper == null) {
_databaseHelper = DatabaseHelper.internal();
return _databaseHelper!;
} else {
return _databaseHelper!;
}
}
DatabaseHelper.internal();
}
No need to update your IDE or Flutter.
Error Code:
void answerQuestion {
print('Answer Chosen!');
}
Correct Code:
void answerQuestion() {
print('Answer Chosen!');
}
$ flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 2.2.3 at /home/jrhp/snap/flutter/common/flutter
• Framework revision f4abaa0735 (3 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/jrhp/Android/Sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /snap/android-studio/113/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 4.2)
• Android Studio at /snap/android-studio/113/android-studio
• Flutter plugin version 58.0.1
• Dart plugin version 202.8531
• Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
[✓] VS Code (version 1.58.0)
• VS Code at /usr/share/code
• Flutter extension version 3.24.0
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114
• No issues found!
I tried to use google signin and facebbok auth or facebook sigin in my flutter app . I got a perfect output when i add anyone of the faceebook auth or google sigin package . When i try to add both I got a package conflict error
I also tried for both like this : import 'package:google_sign_in/google_sign_in.dart' as google;
But that does not work
**flutter_facebook_login: ^3.0.0
google_sign_in: ^4.1.1**
And the error which i got is :I/flutter (13976): MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)
This is my flutter doctor:
C:\Users\Administrator>flutter doctor -v
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [Version 10.0.19042.867], locale en-IN)
• Flutter version 2.0.5 at C:\src\flutter\flutter
• Framework revision adc687823a (6 weeks ago), 2021-04-16 09:40:20 -0700
• Engine revision b09f014e96
• Dart version 2.12.3
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (3 available)
• HD1901 (mobile) • 5c628c62 • android-arm64 • Android 11 (API 30)
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212
• Edge (web) • edge • web-javascript • Microsoft Edge 90.0.818.66
• No issues found!