-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a test runner project for Sample code.
- Loading branch information
Showing
57 changed files
with
916 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
|
||
namespace net.authorize.sample | ||
{ | ||
class CreateCustomerProfile | ||
public class CreateCustomerProfile | ||
{ | ||
public static void Run(string ApiLoginID, string ApiTransactionKey) | ||
public static ANetApiResponse Run(string ApiLoginID, string ApiTransactionKey, string emailId) | ||
{ | ||
Console.WriteLine("CreateCustomerProfile Sample"); | ||
|
||
|
@@ -29,8 +29,8 @@ public static void Run(string ApiLoginID, string ApiTransactionKey) | |
|
||
var bankAccount = new bankAccountType | ||
{ | ||
accountNumber = "0123454321", | ||
routingNumber = "000000204", | ||
accountNumber = "231323342", | ||
routingNumber = "000000224", | ||
accountType = bankAccountTypeEnum.checking, | ||
echeckType = echeckTypeEnum.WEB, | ||
nameOnAccount = "test", | ||
|
@@ -69,7 +69,7 @@ public static void Run(string ApiLoginID, string ApiTransactionKey) | |
|
||
customerProfileType customerProfile = new customerProfileType(); | ||
customerProfile.merchantCustomerId = "Test CustomerID"; | ||
customerProfile.email = "[email protected]"; | ||
customerProfile.email = emailId; | ||
customerProfile.paymentProfiles = paymentProfileList.ToArray(); | ||
customerProfile.shipToList = addressInfoList.ToArray(); | ||
|
||
|
@@ -90,11 +90,12 @@ public static void Run(string ApiLoginID, string ApiTransactionKey) | |
Console.WriteLine("Success, CustomerShippingProfileID : " + response.customerShippingAddressIdList[0]); | ||
} | ||
} | ||
else | ||
else if(response != null ) | ||
{ | ||
Console.WriteLine("Error: " + response.messages.message[0].code + " " + response.messages.message[0].text); | ||
} | ||
|
||
return response; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.