This commit is contained in:
Hamza Aleghwairyeen
2024-04-18 16:24:50 +03:00
parent 1f333852ac
commit 04035a5b52
3 changed files with 5 additions and 20 deletions

View File

@@ -462,6 +462,8 @@ class PaymentController extends GetxController {
}
}
// 'https://accept.paymob.com/unifiedcheckout/?publicKey=egy_pk_live_mbjDC9Ni6FSHKmsz8sOHiVk2xd7oWRve&clientSecret=egy_sk_live_c0904e9cf04506ae64f818d4e075b4a957e3713fdf7a22cb7da30a29e72442b5'
Future<void> payWithPayMob(
BuildContext context, String amount, currency, Function method) async {
String newAmount = (double.parse(amount) * 100).toStringAsFixed(2);