This commit is contained in:
Hamza-Ayed
2024-02-22 16:19:45 +03:00
parent 9d839f02ae
commit a9f557ca83
85 changed files with 9196 additions and 494 deletions

View File

@@ -165,7 +165,7 @@ class PaymentController extends GetxController {
// applePay: const PaymentSheetApplePay(merchantCountryCode: 'US'),
// googlePay: const PaymentSheetGooglePay(merchantCountryCode: 'US'),
paymentIntentClientSecret: clientSecret,
merchantDisplayName: 'Sefer',
merchantDisplayName: AppInformation.appName,
billingDetails: BillingDetails(
name: box.read(BoxName.nameDriver) == null
? box.read(BoxName.name).toString()
@@ -178,7 +178,7 @@ class PaymentController extends GetxController {
: box.read(BoxName.phoneDriver).toString(),
address: const Address(
city: 'city',
country: 'United States',
country: 'Jordan', //'United States'
line1: '',
line2: '',
postalCode: '12345',
@@ -251,8 +251,8 @@ class PaymentController extends GetxController {
"AWj9MdPaA5Djpx8gOkvBn2qhP-3KvfB6W-l8USTsm19Xi2NhkNkE9QzosOvTPTsKjCMNffgpqStUA1-x",
secretKey:
"EKkasSl9O61lrfrbaJfXp1B-CIs2Rv71J0WPouxxugi38DsWaMhWpovJxN2ftYPQ0l6v9eoBvnyWkemp",
returnURL: "https://mobile-app.store",
cancelURL: "https://mobile-app.store/cancel",
returnURL: AppInformation.website,
cancelURL: "${AppInformation.website}/cancel",
transactions: [
{
"amount": {
@@ -294,7 +294,7 @@ class PaymentController extends GetxController {
}
}
],
note: "Contact us for any questions on your order.",
note: "Contact us for any questions on your order.".tr,
onSuccess: (Map params) async {
print("onSuccess: $params");
addPassengerWallet();
@@ -423,7 +423,7 @@ class PaymentController extends GetxController {
Future<String> createTransactionToCaptain(
String amount, String account) async {
String url = 'https://api.stripe.com//v1/transfers';
String url = 'https://api.stripe.com/v1/transfers';
final body = {
'amount': amount, //amount