public static void Main(string[] args) { Console.WriteLine("==========================================="); Console.WriteLine("Welcome to Off Amazon Payments Service Automatic Payments Simple Checkout Sample!"); Console.WriteLine("==========================================="); Console.WriteLine(); string billingAgreementId = CLIHelper.getStringFromConsole("billing agreement id"); double paymentAmount = CLIHelper.getDoubleFromConsole("payment amount"); int shippingOption = CLIHelper.getShippingOption(); OffAmazonPaymentsServiceAutomaticPaymentsSimpleCheckout automaticPayments = new OffAmazonPaymentsServiceAutomaticPaymentsSimpleCheckout(billingAgreementId); RunSample(automaticPayments, billingAgreementId, paymentAmount, shippingOption); Console.WriteLine(); Console.WriteLine("==========================================="); Console.WriteLine("End of output. You can close this window"); Console.WriteLine("==========================================="); System.Threading.Thread.Sleep(50000); }
public static void Main(string[] args) { Console.WriteLine("==========================================="); Console.WriteLine("Welcome to Off Amazon Payments Service Simple Checkout Sample!"); Console.WriteLine("==========================================="); Console.WriteLine(); string orderReferenceId = CLIHelper.getStringFromConsole("order reference id"); double orderAmount = CLIHelper.getDoubleFromConsole("order amount"); int authorizationOption = CLIHelper.getAuthorizationOption(); int shippingOption = CLIHelper.getShippingOption(); OffAmazonPaymentsServiceSimpleCheckout simpleCheckout = new OffAmazonPaymentsServiceSimpleCheckout(orderReferenceId); RunSample(orderReferenceId, orderAmount, shippingOption, authorizationOption, simpleCheckout); Console.WriteLine(); Console.WriteLine("==========================================="); Console.WriteLine("End of output. You can close this window"); Console.WriteLine("==========================================="); System.Threading.Thread.Sleep(50000); }