Skip to content

Commit

Permalink
PayPal Direct could cause some issue when testing in sandbox mode on …
Browse files Browse the repository at this point in the history
…localhost. You could get 10747 error
  • Loading branch information
andreymaz committed Aug 1, 2013
1 parent a79d2c8 commit 971aa5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Group: Payment methods
FriendlyName: Credit Card
SystemName: Payments.PayPalDirect
Version: 1.18
Version: 1.19
SupportedVersions: 3.10
Author: nopCommerce team
DisplayOrder: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ protected ProcessPaymentResult AuthorizeOrSale(ProcessPaymentRequest processPaym
var details = new DoDirectPaymentRequestDetailsType();
req.DoDirectPaymentRequest.DoDirectPaymentRequestDetails = details;
details.IPAddress = _webHelper.GetCurrentIpAddress();
if (details.IPAddress == "::1")
details.IPAddress = "127.0.0.1";
if (authorizeOnly)
details.PaymentAction = PaymentActionCodeType.Authorization;
else
Expand Down

0 comments on commit 971aa5a

Please sign in to comment.