2026-03-10-1
This commit is contained in:
@@ -56,19 +56,19 @@ class WalletController extends GetxController {
|
||||
});
|
||||
}
|
||||
|
||||
Future addDrivergift3000(String paymentMethod, driverID, point, phone) async {
|
||||
Future addDrivergift300(String paymentMethod, driverID, point, phone) async {
|
||||
// paymentToken = await generateToken(count);
|
||||
// var paymentID = await getPaymentId(paymentMethod, point.toString());
|
||||
var res = await CRUD().postWallet(link: AppLink.add300ToDriver, payload: {
|
||||
'driverID': driverID.toString(),
|
||||
'paymentID': paymentMethod,
|
||||
'amount': point,
|
||||
'token': 'gift_connect_30000',
|
||||
'token': 'gift_connect_300',
|
||||
'paymentMethod': paymentMethod,
|
||||
'phone': phone,
|
||||
});
|
||||
if (res != 'failure') {
|
||||
Get.snackbar('success', 'addDrivergift3000',
|
||||
Get.snackbar('success', 'addDrivergift300',
|
||||
backgroundColor: AppColor.greenColor);
|
||||
} else {
|
||||
Get.snackbar('error', res, backgroundColor: AppColor.redColor);
|
||||
|
||||
Reference in New Issue
Block a user