This commit is contained in:
Hamza-Ayed
2024-06-22 13:12:35 +03:00
parent 1cc0156cfd
commit 3c5321f70b
67 changed files with 91 additions and 740 deletions

View File

@@ -39,7 +39,6 @@ class PaymobPayout extends GetxController {
var decode = jsonDecode(res.body);
token = decode['access_token'];
}
print('token = $token');
return token;
}
@@ -55,15 +54,12 @@ class PaymobPayout extends GetxController {
"issuer": issuer, //"vodafone",
"msisdn": msisdn, // "01023456789"
});
print(body);
var res = await http.post(
Uri.parse(
'https://stagingpayouts.paymobsolutions.com/api/secure/disburse/'),
headers: headers,
body: body,
);
print(jsonDecode(res.body));
print('-----');
var dec = jsonDecode(res.body);
if (dec['disbursement_status'] == 'successful') {
var paymentToken = await Get.find<CaptainWalletController>()
@@ -108,14 +104,12 @@ class PaymobPayout extends GetxController {
};
var res = await http
.post(
Uri.parse(
'https://stagingpayouts.paymobsolutions.com/api/secure/disburse/'),
headers: headers,
body: body,
)
.then((value) {
print(value);
});
Uri.parse(
'https://stagingpayouts.paymobsolutions.com/api/secure/disburse/'),
headers: headers,
body: body,
)
.then((value) {});
}
Future payToWalletDriverAll(