Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.authorize.sample.PaymentTransactions;
package net.authorize.sample.AcceptSuite;

import java.math.BigDecimal;
import java.math.RoundingMode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.authorize.sample.CustomerProfiles;
package net.authorize.sample.AcceptSuite;

import net.authorize.Environment;
import net.authorize.api.contract.v1.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.authorize.sample.PaymentTransactions;
package net.authorize.sample.AcceptSuite;

import java.math.BigDecimal;
import java.math.RoundingMode;
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/net/authorize/sample/SampleCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import net.authorize.sample.CustomerProfiles.*;
import net.authorize.sample.MobileInAppTransactions.*;
import net.authorize.sample.FraudManagement.*;
import net.authorize.sample.AcceptSuite.GetAcceptCustomerProfilePage;
import net.authorize.sample.AcceptSuite.GetAnAcceptPaymentPage;
/**
* Created by anetdeveloper on 8/5/15.
*/
Expand Down Expand Up @@ -145,9 +147,9 @@ private static void RunMethod(String methodName)
//Update the transactionId with which you want to run the sample code
String transactionId = "123456";

String customerProfileId = "37905546";
String customerPaymentProfileId = "34461178";
String customerAddressId = "1871959249";
String customerProfileId = "36596285";
String customerPaymentProfileId = "33086593";
String customerAddressId = "1873761911";

String emailId = "test@test.com";

Expand Down Expand Up @@ -220,7 +222,7 @@ private static void RunMethod(String methodName)
CreateSubscription.run(apiLoginId, transactionKey, (short)12, amount);
break;
case "CreateSubscriptionFromCustomerProfile":
CreateSubscriptionFromCustomerProfile.run(apiLoginId, transactionKey, (short)12, amount, "123212", "123213", "123213");
CreateSubscriptionFromCustomerProfile.run(apiLoginId, transactionKey, (short)12, amount, customerProfileId, customerPaymentProfileId, customerAddressId);
break;
case "GetSubscription":
GetSubscription.run(apiLoginId, transactionKey, subscriptionId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import net.authorize.api.contract.v1.UpdateCustomerProfileResponse;
import net.authorize.api.contract.v1.UpdateCustomerShippingAddressResponse;
import net.authorize.api.contract.v1.ValidateCustomerPaymentProfileResponse;
import net.authorize.sample.AcceptSuite.GetAcceptCustomerProfilePage;
import net.authorize.sample.AcceptSuite.GetAnAcceptPaymentPage;
import net.authorize.sample.CustomerProfiles.CreateCustomerPaymentProfile;
import net.authorize.sample.CustomerProfiles.CreateCustomerProfile;
import net.authorize.sample.CustomerProfiles.CreateCustomerProfileFromTransaction;
Expand All @@ -42,7 +44,6 @@
import net.authorize.sample.CustomerProfiles.GetCustomerPaymentProfile;
import net.authorize.sample.CustomerProfiles.GetCustomerProfile;
import net.authorize.sample.CustomerProfiles.GetCustomerShippingAddress;
import net.authorize.sample.CustomerProfiles.GetAcceptCustomerProfilePage;
import net.authorize.sample.CustomerProfiles.UpdateCustomerPaymentProfile;
import net.authorize.sample.CustomerProfiles.UpdateCustomerProfile;
import net.authorize.sample.CustomerProfiles.UpdateCustomerShippingAddress;
Expand Down Expand Up @@ -71,7 +72,6 @@
import net.authorize.sample.RecurringBilling.GetSubscriptionStatus;
import net.authorize.sample.RecurringBilling.UpdateSubscription;
import net.authorize.sample.TransactionReporting.GetTransactionDetails;
import net.authorize.sample.PaymentTransactions.GetAnAcceptPaymentPage;

public class TestRunner {

Expand Down