Paypal Payment Pro not passing along CVN

cgarvis - May 28, 2008 - 20:39
Project:e-Commerce
Version:5.x-4.0-alpha11
Component:paypal
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

When testing out Paypal's WPP in e-commerce, I was getting the error:

This transaction cannot be processed without a Credit Card Verification number.

It seems that the cvn was not getting passed. To fix the bug, I added 'CVV2' to the $params array in paypal.module line 488 in function paypal_pro_receipt_process_payment. So now it looks like:
  $params = array(
    'PAYMENTACTION' => 'Sale',
    'CREDITCARDTYPE' => strtoupper($payment_form['cardtype']),
    'ACCT' => $payment_form['cardnumber'],
    'CVV2' => $payment_form['cvn'],
    'FIRSTNAME' => $fname,
    'LASTNAME' => $lname,
    'EXPDATE' => $payment_form['expiry']['expmonth'] .'20'. $payment_form['expiry']['expyear'],
    'AMT' => number_format($total),
    'IPADDRESS' => $_SERVER['REMOTE_ADDR'],
  );

#1

JBrauer - June 7, 2008 - 05:55
Status:active» patch (code needs review)

#2

gordon - June 8, 2008 - 03:37
Status:patch (code needs review)» fixed

Thanks I have fixed this.

#3

Anonymous (not verified) - June 22, 2008 - 03:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.