public static void Main() { string accountID = "MERCHANT'S ACCOUNT ID HERE"; string secretKey = "MERCHANT'S SECRET KEY HERE"; string mode = "TEST"; // Merchant's Account ID // Merchant's Secret Key // Transaction Mode: TEST (can also be LIVE) BluePayPayment_BP10Emu stq = new BluePayPayment_BP10Emu( accountID, secretKey, mode); // Search Date Start: Jan. 1, 2013 // Search Date End: Jan 15, 2013 // Do not include errored transactions in search? Yes stq.getSingleTransQuery( "2013-01-01", "2013-01-15", "1"); stq.queryByTransactionID("ENTER A TRANSACTION ID HERE"); stq.Process(); // Outputs response from BluePay gateway Console.Write(stq.response); }
public static void Main() { string accountID = "MERCHANT'S ACCOUNT ID HERE"; string secretKey = "MERCHANT'S SECRET KEY HERE"; string mode = "TEST"; // Merchant's Account ID // Merchant's Secret Key // Transaction Mode: TEST (can also be LIVE) BluePayPayment_BP10Emu report = new BluePayPayment_BP10Emu( accountID, secretKey, mode); // Report Start Date: Jan. 1, 2013 // Report End Date: Jan. 15, 2013 // Also search subaccounts? Yes // Output response without commas? Yes // Do not include errored transactions? Yes report.getTransactionSettledReport( "2013-01-01", "2013-01-15", "1", "1", "1"); report.Process(); // Outputs response from BluePay gateway Console.Write(report.response); }
public static void Main() { string accountID = "MERCHANT'S ACCOUNT ID HERE"; string secretKey = "MERCHANT'S SECRET KEY HERE"; string mode = "TEST"; // Merchant's Account ID // Merchant's Secret Key // Transaction Mode: TEST (can also be LIVE) BluePayPayment_BP10Emu payment = new BluePayPayment_BP10Emu( accountID, secretKey, mode); // Card Number: 4111111111111111 // Card Expire: 12/15 // Card CVV2: 123 payment.setCCInformation( "4111111111111111", "1215", "123"); // First Name: Bob // Last Name: Tester // Address1: 123 Test St. // Address2: Apt #500 // City: Testville // State: IL // Zip: 54321 // Country: USA payment.setCustomerInformation( "Bob", "Tester", "123 Test St.", "Apt #500", "Testville", "IL", "54321", "USA"); // Rebill Amount: $3.50 // Rebill Start Date: Jan. 5, 2015 // Rebill Frequency: 1 MONTH // Rebill # of Cycles: 5 payment.setRebillingInformation( "3.50", "2015-01-05", "1 MONTH", "5"); // Phone #: 123-123-1234 payment.setPhone("123-123-1234"); // Email Address: [email protected] payment.setEmail("*****@*****.**"); // Auth Amount: $0.00 payment.auth("0.00"); string result = payment.Process(); // If transaction was approved.. if (result == "APPROVED") { BluePayPayment_BP10Emu rebillCancel = new BluePayPayment_BP10Emu( "MERCHANT'S ACCOUNT ID HERE", "MERCHANT'S SECRET KEY HERE", "TEST"); // Gets rebill status using Rebill ID token returned rebillCancel.getRebillStatus(payment.getRebillID()); rebillCancel.Process(); // Outputs response from BluePay gateway Console.Write("Rebill ID: " + rebillCancel.getRebillID() + Environment.NewLine); Console.Write("Rebill Status: " + rebillCancel.getStatus() + Environment.NewLine); Console.Write("Rebill Creation Date: " + rebillCancel.getCreationDate() + Environment.NewLine); Console.Write("Rebill Next Date: " + rebillCancel.getNextDate() + Environment.NewLine); Console.Write("Rebill Last Date: " + rebillCancel.getLastDate() + Environment.NewLine); Console.Write("Rebill Schedule Expression: " + rebillCancel.getSchedExpr() + Environment.NewLine); Console.Write("Rebill Cycles Remaining: " + rebillCancel.getCyclesRemain() + Environment.NewLine); Console.Write("Rebill Amount: " + rebillCancel.getRebillAmount() + Environment.NewLine); Console.Write("Rebill Next Amount: " + rebillCancel.getNextAmount() + Environment.NewLine); } else { Console.Write(payment.getMessage()); } }
public static void Main() { string accountID = "MERCHANT'S ACCOUNT ID HERE"; string secretKey = "MERCHANT'S SECRET KEY HERE"; string mode = "TEST"; // Merchant's Account ID // Merchant's Secret Key // Transaction Mode: TEST (can also be LIVE) BluePayPayment_BP10Emu payment = new BluePayPayment_BP10Emu( accountID, secretKey, mode); // Card Number: 4111111111111111 // Card Expire: 12/15 // Card CVV2: 123 payment.setCCInformation( "4111111111111111", "1215", "123"); // First Name: Bob // Last Name: Tester // Address1: 123 Test St. // Address2: Apt #500 // City: Testville // State: IL // Zip: 54321 // Country: USA payment.setCustomerInformation( "Bob", "Tester", "123 Test St.", "Apt #500", "Testville", "IL", "54321", "USA"); // Phone #: 123-123-1234 payment.setPhone("1231231234"); // Email Address: [email protected] payment.setEmail("*****@*****.**"); // Sale Amount: $3.00 payment.sale("3.00"); payment.Process(); // Outputs response from BluePay gateway Console.Write("Transaction ID: " + payment.getTransID() + Environment.NewLine); Console.Write("Message: " + payment.getMessage() + Environment.NewLine); Console.Write("Status: " + payment.getStatus() + Environment.NewLine); Console.Write("AVS Result: " + payment.getAVS() + Environment.NewLine); Console.Write("CVV2 Result: " + payment.getCVV2() + Environment.NewLine); Console.Write("Masked Payment Account: " + payment.getMaskedPaymentAccount() + Environment.NewLine); Console.Write("Card Type: " + payment.getCardType() + Environment.NewLine); Console.Write("Authorization Code: " + payment.getAuthCode() + Environment.NewLine); }
public static void Main() { string accountID = "MERCHANT'S ACCOUNT ID HERE"; string secretKey = "MERCHANT'S SECRET KEY HERE"; string mode = "TEST"; // Merchant's Account ID // Merchant's Secret Key // Transaction Mode: TEST (can also be LIVE) BluePayPayment_BP10Emu payment = new BluePayPayment_BP10Emu( accountID, secretKey, mode); // Routing Number: 071923307 // Account Number: 0523421 // Account Type: Checking // ACH Document Type: WEB payment.setACHInformation( "071923307", "0523421", "C", "WEB"); // First Name: Bob // Last Name: Tester // Address1: 123 Test St. // Address2: Apt #500 // City: Testville // State: IL // Zip: 54321 // Country: USA payment.setCustomerInformation( "Bob", "Tester", "123 Test St.", "Apt #500", "Testville", "IL", "54321", "USA"); // Rebill Amount: $3.50 // Rebill Start Date: Jan. 5, 2015 // Rebill Frequency: 1 MONTH // Rebill # of Cycles: 5 payment.setRebillingInformation( "3.50", "2015-01-05", "1 MONTH", "5"); // Phone #: 123-123-1234 payment.setPhone("1231231234"); // Email Address: [email protected] payment.setEmail("*****@*****.**"); // Sale Amount: $3.00 payment.sale("3.00"); payment.Process(); // Outputs response from BluePay gateway Console.Write("Transaction ID: " + payment.getTransID() + Environment.NewLine); Console.Write("Rebill ID: " + payment.getRebillID() + Environment.NewLine); Console.Write("Message: " + payment.getMessage() + Environment.NewLine); Console.Write("Status: " + payment.getStatus() + Environment.NewLine); Console.Write("AVS Result: " + payment.getAVS() + Environment.NewLine); Console.Write("CVV2 Result: " + payment.getCVV2() + Environment.NewLine); Console.Write("Masked Payment Account: " + payment.getMaskedPaymentAccount() + Environment.NewLine); Console.Write("Bank Name: " + payment.getBank() + Environment.NewLine); Console.Write("Authorization Code: " + payment.getAuthCode() + Environment.NewLine); }