Commit 3c0a628c authored by mattwire's avatar mattwire

Set customer IP address for transaction

parent 3b1c5af6
......@@ -181,6 +181,7 @@ abstract class CRM_Core_Payment_AuthorizeNetCommon extends CRM_Core_Payment {
$transactionRequestType->setOrder($order);
$transactionRequestType->setBillTo($customerAddress);
$transactionRequestType->setCustomer($customerData);
$transactionRequestType->setCustomerIP(CRM_Utils_System::ipAddress());
$request = new AnetAPI\CreateTransactionRequest();
$request->setMerchantAuthentication($merchantAuthentication);
$request->setRefId($this->getInvoiceNumber($params));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment