if (adyenPaymentRequest.getCustomerId() != null) {
adyenRequest.put(SHOPPER_REFERENCE, adyenPaymentRequest.getCustomerId());
adyenRequest.put(SHOPPER_INTERACTION, SHOPPER_INTERACTION_ECOMMERCE);
adyenRequest.put(RECURRING_PROCESSING_MODEL,
getRecurringProcessingModel(adyenPaymentRequest));
if (adyenPaymentData.containsKey(STORE_PAYMENT_METHOD)) {
adyenRequest.put(STORE_PAYMENT_METHOD,
adyenPaymentData.get(STORE_PAYMENT_METHOD));
}
Map<String, Object> paymentMethod =
(Map<String, Object>) adyenPaymentData.get("paymentMethod");
if (paymentMethod != null && paymentMethod.containsKey("storedPaymentMethodId")) {
// customer uses the stored payment method, set ContAuth to shopperInteraction
adyenRequest.put(SHOPPER_INTERACTION, SHOPPER_INTERACTION_CONT_AUTH);
}
}