This commit is contained in:
Hamza-Ayed
2024-06-18 15:47:07 +03:00
parent 19411ff515
commit 2fcd4cbc76
3 changed files with 7 additions and 5011 deletions

View File

@@ -67,10 +67,10 @@ class PaymobPayout extends GetxController {
if (dec['disbursement_status'] == 'successful') {
var paymentToken = await Get.find<CaptainWalletController>()
.generateToken(
((-1) * (double.parse(dec['amount'])) + 5).toStringAsFixed(0));
((-1) * (double.parse(dec['amount'])) - 5).toStringAsFixed(0));
await CRUD().post(link: AppLink.addDrivePayment, payload: {
'rideId': DateTime.now().toIso8601String(),
'amount': ((-1) * (double.parse(dec['amount'])) + 5).toStringAsFixed(0),
'amount': ((-1) * (double.parse(dec['amount'])) - 5).toStringAsFixed(0),
'payment_method': 'payout',
'passengerID': 'myself',
'token': paymentToken,

File diff suppressed because it is too large Load Diff

View File

@@ -103,11 +103,11 @@ class CardSeferWalletDriver extends StatelessWidget {
.totalAmountVisa) -
5)
.toStringAsFixed(0);
print(Get.find<PaymobPayout>()
.dropdownValue
.toString());
print(captainWalletController.phoneWallet.text
.toString());
// print(Get.find<PaymobPayout>()
// .dropdownValue
// .toString());
// print(captainWalletController.phoneWallet.text
// .toString());
await Get.put(PaymobPayout()).payToWalletDriverAll(
amountAfter5LE,
Get.find<PaymobPayout>().dropdownValue.toString(),