This commit is contained in:
Hamza Aleghwairyeen
2024-04-13 00:55:09 +03:00
parent 4e35874f2b
commit a02965fac9
11 changed files with 142 additions and 42 deletions

View File

@@ -61,7 +61,7 @@ class HomeCaptainController extends GetxController {
void goToWalletFromConnect() {
Get.back();
Get.back();
Get.to(() => WaletCaptain());
Get.to(() => WalletCaptain());
}
void changeRideId() {

View File

@@ -20,7 +20,9 @@ class CaptainWalletController extends GetxController {
payFromBudget() async {
if (formKey.currentState!.validate()) {
var pointFromBudget = int.parse((amountFromBudgetController.text)) * 100;
var pointFromBudget = box.read(BoxName.countryCode) == 'Jordan'
? int.parse((amountFromBudgetController.text)) * 100
: int.parse((amountFromBudgetController.text));
await addDriverPayment('fromBudgetToPoints',
int.parse((amountFromBudgetController.text)) * -1);

View File

@@ -436,6 +436,9 @@ class MyTranslation extends Translations {
'Your trip cost is': 'تبلغ تكلفة رحلتك',
'you have a negative balance of': 'ولكن لديك رصيد سلبي قدره',
' in your': 'في محفظتك',
'Exclusive offers and discounts always with the Sefer app':
'عروض حصرية وتخفيضات دائمة مع تطبيق سفر',
'Please go to Car Driver': 'توجه إلى سائق السيارة',
' wallet due to a previous trip.': 'بسبب رحلة سابقة',
'Submit Question': "طرح السؤال",
'Please enter your Question.': "الرجاء إدخال سؤالك.",
@@ -496,7 +499,6 @@ class MyTranslation extends Translations {
'حتا لو مفيش كارت SIM, متخفش! تقدر تكلم سواقك بمنتهى البساطة عن طريق التطبيق بتاعنا. احنا بنستخدم تكنولوجيا حديثة عشان نحافظ على خصوصيتك.',
'This ride type allows changes, but the price may increase':
'ده نوع الرحلات بيسمح بالتغيير بس السعر ممكن يزيد ',
'Cost Of Trip IS ': "تكلفة الرحلة هي ",
'message From passenger': '‏رسالة من الراكب',
'Select one message': "‏اختر رسالة",
'My location is correct. You can search for me using the navigation app':
@@ -511,9 +513,9 @@ class MyTranslation extends Translations {
"الرجاء المساعدة! اتصل بي في أقرب وقت ممكن.",
'Share Trip Details': "مشاركة تفاصيل الرحلة",
'Car Plate is ': '‏رقم اللوحة',
'the 300 points equal 30 L.E for you \nSo go and gain your money':
'اربح 30 جنيه ! كل 300 نقطة تمنحك 30 جنيه. اذهب واستفد من نقاطك!',
'the 300 points equal 30 L.E':
'the 300 points equal 300 L.E for you \nSo go and gain your money':
'اربح 300 جنيه ! كل 300 نقطة تمنحك 300 جنيه. اذهب واستفد من نقاطك!',
'the 300 points equal 300 L.E':
'الـ 300 نقطة تساوي 30 جنيه بالنسبة لك ',
'No ride found yet': '‏لا يوجد طلبات متوفرة حاليا',
'Accept Order': "‏اقبل الطلب",
@@ -538,10 +540,7 @@ class MyTranslation extends Translations {
"Qatar": "قطر",
"Bahrain": "البحرين",
"Kuwait": "الكويت",
'Your trip cost is': "تكلفة رحلتك هي",
'But you have a negative salary of': "لكن لديك راتب سلبي بقيمة",
' in your': "في",
' wallet due to a previous trip.': "المحفظة بسبب رحلة سابقة.",
'Promo Code': "كود ترويجي",
'Your trip distance is': "مسافة رحلتك هي",
'Enter promo code': "أدخل كود ترويجي",

View File

@@ -1,4 +1,5 @@
import 'dart:convert';
import 'package:SEFER/constant/api_key.dart';
import 'package:http/http.dart' as http;
import 'package:flutter/material.dart';
import 'package:flutter_paypal/flutter_paypal.dart';
@@ -197,6 +198,7 @@ class PaymentController extends GetxController {
name: CollectionMode.automatic,
phone: CollectionMode.automatic,
email: CollectionMode.automatic,
// address: CollectionMode.automatic,
),
),
);
@@ -248,10 +250,8 @@ class PaymentController extends GetxController {
MaterialPageRoute(
builder: (BuildContext context) => UsePaypal(
sandboxMode: true,
clientId:
"AWj9MdPaA5Djpx8gOkvBn2qhP-3KvfB6W-l8USTsm19Xi2NhkNkE9QzosOvTPTsKjCMNffgpqStUA1-x",
secretKey:
"EKkasSl9O61lrfrbaJfXp1B-CIs2Rv71J0WPouxxugi38DsWaMhWpovJxN2ftYPQ0l6v9eoBvnyWkemp",
clientId: AK.payPalClientIdLive,
secretKey: AK.payPalSecretLive,
returnURL: AppInformation.website,
cancelURL: "${AppInformation.website}/cancel",
transactions: [