Commit d9f16f31 authored by mattwire's avatar mattwire

Merge branch 'customerip' into 'master'

Set customer IP address for transaction

See merge request !9
parents 3b1c5af6 3c0a628c
......@@ -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