2 issues : CVV2 value , orders are always pending !

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
que0x
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Thu May 29, 2008 5:25 am

2 issues : CVV2 value , orders are always pending !

Post by que0x » Sat Aug 02, 2008 5:31 pm

Hi Folks !

2 issues I'm facing :
  • Cvv2 value ,where i can get it from the API ? (is it AccountDataDictionary ?)
  • orders always appear "pending" to admin, though they where authorized and captured , once viewed they switched to "Authorized"
Thanks !

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: 2 issues : CVV2 value , orders are always pending !

Post by mazhar » Mon Aug 04, 2008 6:26 am

Cvv2 value ,where i can get it from the API ? (is it AccountDataDictionary ?)
AccountDataDictionary is used for CVV processing when placing and order but you can't get this value because its never been stored. Standard credit card processing rules don't allow to store the CVV.

que0x
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Thu May 29, 2008 5:25 am

Re: 2 issues : CVV2 value , orders are always pending !

Post by que0x » Mon Aug 04, 2008 7:13 am

thanks , but the payment gateway requires the CVV2 , CVV2 is the shown security code on the card itself so all i need the security code written by the customer checkout.

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: 2 issues : CVV2 value , orders are always pending !

Post by afm » Mon Aug 04, 2008 12:45 pm

que0x wrote:thanks , but the payment gateway requires the CVV2 , CVV2 is the shown security code on the card itself so all i need the security code written by the customer checkout.
You cannot retrieve the card security code to manually process the charge using your card reader or virtual terminal. If you need to manually process charges, then you will need to change your payment processor contract to allow charges without the card security code.

If you configure AC to process charges for you, then AC will send the card security code to your payment processor.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

que0x
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Thu May 29, 2008 5:25 am

Re: 2 issues : CVV2 value , orders are always pending !

Post by que0x » Tue Aug 05, 2008 5:35 am

Thanks for the reply. my question is how to get the security code (inputted by the customer on checkout) so i can send it to the payment gateway processor.

again, most people mix between cvv and cvv2 ,please refer to Wikipedia article.

Thanks,
Amr

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: 2 issues : CVV2 value , orders are always pending !

Post by sohaib » Tue Aug 05, 2008 5:56 am

Have a look at the source of Authorize.NET payment gateway to see how security code is retrieved during checkout.
viewtopic.php?f=47&t=5926

Code: Select all

            //APPEND PAYMENT INSTRUMENT DETAILS
            //AccountDataDictionary accountData = new AccountDataDictionary(payment.AccountData);
            if (instrument != PaymentInstrument.Check)
            {
                string accountNumber = accountData.GetValue("AccountNumber");
                transactionData.Append("&x_card_num=" + accountNumber);
                if (this.UseDebugMode) sensitiveData[accountNumber] = MakeReferenceNumber(accountNumber);
                string expirationMonth = accountData.GetValue("ExpirationMonth");
                if (expirationMonth.Length == 1) expirationMonth.Insert(0, "0");
                string expirationYear = accountData.GetValue("ExpirationYear");
                transactionData.Append("&x_exp_date=" + System.Web.HttpUtility.UrlEncode(expirationMonth + "/" + expirationYear));
                //PROCESS CREDIT CARD ACCOUNT DATA
                string securityCode = accountData.GetValue("SecurityCode");
                if (!string.IsNullOrEmpty(securityCode))
                {
                    transactionData.Append("&x_card_code=" + securityCode);
                    if (this.UseDebugMode) sensitiveData["x_card_code=" + securityCode] = "x_card_code=" + (new string('x', securityCode.Length));
                }
            }

que0x
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Thu May 29, 2008 5:25 am

Re: 2 issues : CVV2 value , orders are always pending !

Post by que0x » Tue Aug 05, 2008 6:00 am

sohaib , Many thanks ! that's exactly what i needed.

Post Reply