Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Extensions
authnet
Commits
d9f16f31
Commit
d9f16f31
authored
Oct 08, 2020
by
mattwire
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'customerip' into 'master'
Set customer IP address for transaction See merge request
!9
parents
3b1c5af6
3c0a628c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
CRM/Core/Payment/AuthorizeNetCommon.php
CRM/Core/Payment/AuthorizeNetCommon.php
+1
-0
No files found.
CRM/Core/Payment/AuthorizeNetCommon.php
View file @
d9f16f31
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment