12-02-2016 01:51 PM
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']);