Forum Moderators: coopster
$transaction = new AuthorizeNetAIM;
$transaction->setFields(
array(
'amount' => $pmt_amt,
'invoice_number' => $invoice_number,
'invoice_num' => $invoice_number,
'card_num' => $_POST['x_card_num'],
'exp_date' => $_POST['x_exp_date'],
'first_name' => $_POST['x_first_name'],
'last_name' => $_POST['x_last_name'],
'company' => $_POST['x_company'],
'address' => $_POST['x_address'],
'city' => $_POST['x_city'],
'state' => $_POST['x_state'],
'country' => $_POST['x_country'],
'zip' => $_POST['x_zip'],
'email' => $_POST['x_email'],
'card_code' => $_POST['x_card_code'],
)
);
$response = $transaction->authorizeAndCapture();
$order = new AnetAPI\OrderType();
$order->setInvoiceNumber("10101");
Currently you must include an Invoice Number or Description in the transaction request. It's not possible at this time to add those values during the capture.