Comments (3)
Please share with us which version you use and a snapshot from the integration code
from flutter-sdk-bridge.
@mohamedkhairy953 Sure
flutter_paytabs_bridge: ^2.0.3-beta
integration code: (billingDetails & configuration are the same as required in README)
Card Payment:
FlutterPaytabsBridge.startCardPayment(configuration, (event) {
if (event["status"] == "success") {
successPayment();
return;
} else if (event["status"] == "error") {
// Handle error here.
_Result = 'An Error Has Occurred, Please try again later';
} else if (event["status"] == "event") {
// Handle events here.
_Result = 'unsuccessful';
}
}
ApplePay:(configuration is the same as required in README)
FlutterPaytabsBridge.startApplePayPayment(configuration, (event) {
if (event["status"] == "success") {
successPayment();
return;
} else if (event["status"] == "error") {
// Handle error here.
_Result = 'An Error Has Occurred, Please try again later';
} else if (event["status"] == "event") {
// Handle events here.
_Result = "Something went wrong";
}
}
successPayment():
void successPayment() {
dispose();
Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (context) => CreateImageScreen()), (Route<dynamic> route) => false);
}
NOTE: I removed the setState because of the error
from flutter-sdk-bridge.
Hi @ibrafayez
If you are using StatefulWidget so you should use setState() to update your widget state, And regarding the issue, it is not related to ApplePay functionality, please try to print the event in your startApplePayPayment or try to run our sample app just to make sure the issue not related to PayTabs flutter plugin.
Waiting for your reply
Thanks
from flutter-sdk-bridge.
Related Issues (20)
- Change statusbar background color HOT 1
- [log] {message: Unable to process your request, status: error, code: 0} HOT 1
- When I add the package Getting error in Android release
- app crash in android Caused by: java.security.UnrecoverableKeyException: Failed to obtain information about key
- Clicked on scan card icon and app crashed on android HOT 2
- Primary Font Color does not change in Ios
- Save Card for Future payment button not working. HOT 1
- Can't build ios build HOT 1
- Unable to test apple pay in Egypt (or any region not supported by apple pay)
- Validation in iOS ? HOT 4
- Authentication failed. Check authentication header HOT 9
- 202 - Invalid card security code (CVV) HOT 2
- can't initiate any payment
- Invalid Merchant Token
- How to add STC pay with Card payment and Apple pay
- ReadMe has typos
- Authentication failed
- Paytabs it is giving “Duplicate Request” Error HOT 1
- When add package to pubspec.yaml, project crash while build and return this error HOT 6
- app dosn't run when add plugins in dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-sdk-bridge.