Untitled
unknown
dart
a year ago
1.2 kB
4
Indexable
PaymentSdkConfigurationDetails generateConfig() {
List<PaymentSdkAPms> apms = [];
apms.add(PaymentSdkAPms.STC_PAY);
var configuration = PaymentSdkConfigurationDetails(
profileId: payTabsProfileId,
serverKey: payTabsServerKey,
clientKey: payTabsClientKey,
cartDescription: language.appName,
//cartId: widget..toString(),
screentTitle: language.payWithCard,
amount: widget.amount!.toDouble(),
showBillingInfo: true,
forceShippingInfo: false,
currencyCode: appStore.currencyName.toUpperCase(),
merchantCountryCode: "IN",
billingDetails: payTab.BillingDetails(
sharedPref.getString(USER_NAME).validate(),
sharedPref.getString(USER_EMAIL).validate(),
sharedPref.getString(CONTACT_NUMBER).validate(),
sharedPref.getString(ADDRESS).validate(),
'',
'',
'',
'',
),
alternativePaymentMethods: apms,
linkBillingNameWithCardHolderName: true);
var theme = IOSThemeConfigurations();
theme.logoImage = ic_logo_white;
configuration.iOSThemeConfigurations = theme;
return configuration;
}Editor is loading...
Leave a Comment