Page 1 of 1
2 issues : CVV2 value , orders are always pending !
Posted: Sat Aug 02, 2008 5:31 pm
by que0x
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 !
Re: 2 issues : CVV2 value , orders are always pending !
Posted: Mon Aug 04, 2008 6:26 am
by mazhar
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.
Re: 2 issues : CVV2 value , orders are always pending !
Posted: Mon Aug 04, 2008 7:13 am
by que0x
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.
Re: 2 issues : CVV2 value , orders are always pending !
Posted: Mon Aug 04, 2008 12:45 pm
by afm
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.
Re: 2 issues : CVV2 value , orders are always pending !
Posted: Tue Aug 05, 2008 5:35 am
by que0x
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
Re: 2 issues : CVV2 value , orders are always pending !
Posted: Tue Aug 05, 2008 5:56 am
by sohaib
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));
}
}
Re: 2 issues : CVV2 value , orders are always pending !
Posted: Tue Aug 05, 2008 6:00 am
by que0x
sohaib , Many thanks ! that's exactly what i needed.