Who Me Too'd this topic

Authorize.Net API questions and help with your payment integration.

Posts: 1
Registered: ‎12-02-2016
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->setExpirationDate($_POST['expmonth'] . "-" . $_POST['expyear']);

Who Me Too'd this topic