diff --git a/src/main/java/net/authorize/sample/PaymentTransactions/CaptureFundsAuthorizedThroughAnotherChannel.java b/src/main/java/net/authorize/sample/PaymentTransactions/CaptureFundsAuthorizedThroughAnotherChannel.java index 23a50f12..e9a73a47 100644 --- a/src/main/java/net/authorize/sample/PaymentTransactions/CaptureFundsAuthorizedThroughAnotherChannel.java +++ b/src/main/java/net/authorize/sample/PaymentTransactions/CaptureFundsAuthorizedThroughAnotherChannel.java @@ -7,12 +7,9 @@ import net.authorize.api.controller.base.ApiOperationBase; import net.authorize.api.controller.CreateTransactionController; -public class CaptureOnly { +public class CaptureFundsAuthorizedThroughAnotherChannel { - // - // Run this sample from command line with: - // java -jar target/ChargeCreditCard-jar-with-dependencies.jar - // + public static void run(String apiLoginId, String transactionKey) { //Common code to set for all requests diff --git a/src/main/java/net/authorize/sample/SampleCode.java b/src/main/java/net/authorize/sample/SampleCode.java index 4e755295..70a1d1f3 100644 --- a/src/main/java/net/authorize/sample/SampleCode.java +++ b/src/main/java/net/authorize/sample/SampleCode.java @@ -81,7 +81,7 @@ private static void ShowMethods() System.out.println(" RefundTransaction"); System.out.println(" VoidTransaction"); System.out.println(" CreateCustomerProfileFromTransaction"); - System.out.println(" CaptureOnly"); + System.out.println(" CaptureFundsAuthorizedThroughAnotherChannel"); System.out.println(" CapturePreviouslyAuthorizedAmount"); System.out.println(" DebitBankAccount"); System.out.println(" CreditBankAccount"); @@ -158,8 +158,8 @@ private static void RunMethod(String methodName) case "CreateCustomerProfileFromTransaction": CreateCustomerProfileFromTransaction.run(apiLoginId, transactionKey); break; - case "CaptureOnly": - CaptureOnly.run(apiLoginId, transactionKey); + case "CaptureFundsAuthorizedThroughAnotherChannel": + CaptureFundsAuthorizedThroughAnotherChannel.run(apiLoginId, transactionKey); break; case "CapturePreviouslyAuthorizedAmount": CapturePreviouslyAuthorizedAmount.run(apiLoginId, transactionKey);