This commit is contained in:
Hamza-Ayed
2024-02-09 02:56:37 +03:00
parent d4d4592944
commit 8c61a79de3
15 changed files with 397 additions and 71 deletions

View File

@@ -125,8 +125,8 @@ class PaymentController extends GetxController {
late String clientSecret;
Future<void> makePaymentStripe(
int amount, String currency, Function method) async {
var newAmount = amount * 100;
double amount, String currency, Function method) async {
var newAmount = (amount * 100).toInt();
try {
// Check if local authentication is available
@@ -427,7 +427,7 @@ class PaymentController extends GetxController {
final body = {
'amount': amount, //amount
'currency': 'aed',
'currency': 'usd',
'destination': account //'acct_1OKIjQRgcWrsdyDT' //account id
};