cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

Capture Customer Information using PHP

How do I capture other fields like "last name", "first name", and "email" so that they show up in the transaction details?  I am using php.  My form correctly passes the credit card number, expiration date, and amount.  What code can I use to pass other fields?

 

Here's mycode that is correctly passing the credit card information:

$creditCard = new AnetAPI\CreditCardType();
$creditCard->setCardNumber($credit_card); 
$creditCard->setExpirationDate($_POST['expmonth'] . "-" . $_POST['expyear']);
$creditCard->setCardCode($_POST['securitycode']);



aaron0045
Member
Who Me Too'd this topic