Skip to content

Commit 9e30185

Browse files
author
Sunny Raj Rathod
committed
Merge pull request AuthorizeNet#137 from sunnyrajrathod/future
- Adding Changes from https://github.com/AuthorizeNet/sdk-dotnet/pull…
2 parents 20da107 + 8b7a8c2 commit 9e30185

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Authorize.NET/CIM/CustomerGateway.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public class CustomerGateway : ICustomerGateway {
2020
/// <param name="apiLogin">The API login.</param>
2121
/// <param name="transactionKey">The transaction key.</param>
2222
/// <param name="mode">Test or Live.</param>
23-
public CustomerGateway(string apiLogin, string transactionKey, ServiceMode mode) {
23+
/// <param name="validationMode">None, Test, or Live.</param>
24+
public CustomerGateway(string apiLogin, string transactionKey, ServiceMode mode, validationModeEnum? validationMode = null)
25+
{
2426

2527
if (mode == ServiceMode.Live) {
2628
_gateway = new HttpXmlUtility(ServiceMode.Live, apiLogin, transactionKey);
@@ -29,6 +31,10 @@ public CustomerGateway(string apiLogin, string transactionKey, ServiceMode mode)
2931
_gateway = new HttpXmlUtility(ServiceMode.Test, apiLogin, transactionKey);
3032
_mode = validationModeEnum.testMode;
3133
}
34+
if (validationMode.HasValue)
35+
{
36+
_mode = validationMode.Value;
37+
}
3238
}
3339
/// <summary>
3440
/// Initializes a new instance of the <see cref="CustomerGateway"/> class.

0 commit comments

Comments
 (0)