Credit Card Payment: CCV validation issue


I have used commerce 9 version and for credit card payment integrated with provider. The card transaction and payment gatway integration is  fine and able to get the  successfull response. But, client asking to enable the CVV fraud filter. So we sent a card code value to validate the card, but its not validated in always says "Not applicable" / "Not processed" and accept the payment.

Used the below code for sending the card code value.

 var payment = selectedPayment.PreProcess(_CartHelper.OrderForm);

                if (payment != null)
                    payment.PaymentMethodId = paymentMethodRow.PaymentMethodId;
                    payment.PaymentMethodName = paymentMethodRow.Name;
                    payment.BillingAddressId = _CartHelper.OrderForm.BillingAddressId;
                    payment.Amount = _CartHelper.OrderForm.Total;                     

                    return true;

in PreProcess


  var payment = new CreditCardPayment()
                CreditCardNumber = CreditCardNumber.Text,
                CreditCardSecurityCode = SecurityCode.Text             

We feel that, the CVV value is not passed into the from EPiServer CreditCardPayment class, because we tried to insert the sample transaction in the virtual terminal and it is working fine.

Thanks in adavance.

Edited, Aug 14, 2017 13:45

I'm pretty sure that AuthorizePaymentGateway sends the CCV to But don't you need to add the expiration date as well? 

Aug 14, 2017 15:59

Thanks for your reply. Sorry I forgot to add the code and actually I send the expiry Month and year it works perfectly. My real problem is CCV always not validated. If I give the invalid code, that is  also accepted and processed the payment in

Why I'm mentioned it might be the problem not passed the value, cross verified in payment gateway interface is good, but the same time if I'm not given the card code the same status is updated. 

One more thing, if I set mandatory in payment form field the site through error " card code require"  


Aug 14, 2017 17:11

I'm not 100% sure here, but should this relate to this setting? 

Aug 14, 2017 17:24

Yes that's already defined in, do you have any sample or reference code so that I can validate with our end? 

Aug 15, 2017 3:48

Also some additional information for processing the "CartChekout" workflow used the below code:

 /// <summary>
    /// This class represents the Cart Checkout workflow
    /// </summary>
    [ActivityFlowConfiguration(Name = "CartCheckOut")]
    public class CartCheckoutActivityFlow : ActivityFlow
        /// <inheritdoc />
        public override ActivityFlowRunner Configure(ActivityFlowRunner activityFlow)
            return activityFlow.If(() => ShouldProcessPayment())                               
Edited, Aug 16, 2017 9:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.