paytabscom / flutter-sdk-bridge

MIT License
12 stars 11 forks source link

Unable to test apple pay in Egypt (or any region not supported by apple pay) #62

Open karimSalahx opened 1 year ago

karimSalahx commented 1 year ago

Minimal reproduceable code TextButton( onPressed: _applePay, child: 'Pay'.toSubTitle(), ),

final configuration = PaymentSdkConfigurationDetails(profileId: ApiConstants.profileId,serverKey: ApiConstants.serverKey, clientKey: ApiConstants.clientKey, cartId: "11", cartDescription: "cart desc", merchantName: "someString", merchantName: "someString", screentTitle: "Pay with Card", locale: context.isArabic ? PaymentSdkLocale.AR : PaymentSdkLocale.EN, amount: 1.0, currencyCode: 'SAR', merchantCountryCode: "SA", merchantApplePayIndentifier: 'validMerchantIdentifier' , linkBillingNameWithCardHolderName: true,

void _applePay(){ FlutterPaytabsBridge.startApplePayPayment(configuration , (_){}); }

when clicking on the button on iOS simulator nothing happens, but when clicking on my real device, it open apple wallet app but I am unable to add my credit card as apple pay is not supported in my country yet, I tried changing region to united states, I am able to enter my credit card info, it is still refused as my bank blocked it