6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit f7e9aaa8
Changed files
.../lib/pregistration/bloc/preregistration_cubit.dart | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-)
Diff
diff --git a/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart b/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart
index 361a97a3..648dfbbf 100644
--- a/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart
+++ b/comwell_key_app/lib/pregistration/bloc/preregistration_cubit.dart
@@ -250,23 +250,6 @@ class PreregistrationCubit extends Cubit<PreregistrationState> {
emit(state.copyWith(termsAndConditionsAccepted: toggle));
}
- DropInConfiguration getDropInConfig() {
- return DropInConfiguration(
- environment: Environment.test,
- clientKey: dotenv.env['ADYEN_CLIENT_KEY']!,
- countryCode: Locale(Platform.localeName).languageCode,
- shopperLocale: Platform.localeName,
- skipListWhenSinglePaymentMethod: true,
- paymentMethodNames: {
- "scheme": "Credit card",
- },
- cardConfiguration: CardConfiguration(
- showStorePaymentField: true,
- supportedCardTypes: [CardType.visa.name, CardType.mastercard.name],
- ),
- );
- }
-
Future<SessionCheckout> sessionCheckout() async {
final response = await _api.createAdyenSession(AdyenAmount.zeroPayment());
final id = response["Id"] as String;
@@ -274,7 +257,7 @@ class PreregistrationCubit extends Cubit<PreregistrationState> {
return AdyenCheckout.session.create(
sessionId: id,
sessionData: sessionData,
- configuration: getDropInConfig());
+ configuration: cardComponentConfiguration());
}
Future<void> onPaymentResult(PaymentResult result) async {