Skip to content

Commit 5fef407

Browse files
committed
Updating MIGRATING.md
1 parent cc81fe7 commit 5fef407

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

MIGRATING.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ import net.authorize.api.controller.base.ApiOperationBase;
6363

6464
public 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy