File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,7 @@ import net.authorize.api.controller.base.ApiOperationBase;
63
63
64
64
public class ChargeCreditCard {
65
65
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 ) {
70
67
71
68
// Set the request to operate in either the sandbox or production environment
72
69
ApiOperationBase . setEnvironment(Environment . SANDBOX );
@@ -79,8 +76,8 @@ public class ChargeCreditCard {
79
76
// Populate the payment data
80
77
PaymentType paymentType = new PaymentType ();
81
78
CreditCardType creditCard = new CreditCardType ();
82
- creditCard. setCardNumber(" 4242424242424242 " );
83
- creditCard. setExpirationDate(" 0822 " );
79
+ creditCard. setCardNumber(" 4111111111111111 " );
80
+ creditCard. setExpirationDate(" 1220 " );
84
81
paymentType. setCreditCard(creditCard);
85
82
86
83
// Create the payment transaction object
You can’t perform that action at this time.
0 commit comments