File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,10 +63,7 @@ import net.authorize.api.controller.base.ApiOperationBase;
6363
6464public class ChargeCreditCard {
6565
66- // Run this sample from command line with:
67- // java -jar target/ChargeCreditCard-jar-with-dependencies.jar
68- //
69- public static ANetApiResponse run (String apiLoginId , String transactionKey , Double amount ) {
66+ public static void main (String [] args ) {
7067
7168 // Set the request to operate in either the sandbox or production environment
7269 ApiOperationBase . setEnvironment(Environment . SANDBOX );
@@ -79,8 +76,8 @@ public class ChargeCreditCard {
7976 // Populate the payment data
8077 PaymentType paymentType = new PaymentType ();
8178 CreditCardType creditCard = new CreditCardType ();
82- creditCard. setCardNumber(" 4242424242424242 " );
83- creditCard. setExpirationDate(" 0822 " );
79+ creditCard. setCardNumber(" 4111111111111111 " );
80+ creditCard. setExpirationDate(" 1220 " );
8481 paymentType. setCreditCard(creditCard);
8582
8683 // Create the payment transaction object
You can’t perform that action at this time.
0 commit comments