6/22/1
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user