Created
April 3, 2012 19:12
-
-
Save VantivSDK/2294812 to your computer and use it in GitHub Desktop.
Java SDK- Litle Refund Transaction, stand-alone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.litle.sdk.*; | |
import com.litle.sdk.generate.*; | |
public class OrphanedRefundExample { | |
public static void main(String[] args) { | |
Credit credit = new Credit(); | |
credit.setOrderId("1"); | |
credit.amount(10010L); | |
credit.setOrderSource(OrderSourceType.ECOMMERCE); | |
Contact billToAddress = new Contact(); | |
billToAddress.setName("John Smith"); | |
billToAddress.setAddressLine1("1 Main St."); | |
billToAddress.setCity("Burlington"); | |
billToAddress.setState("MA"); | |
billToAddress.setCountry(CountryTypeEnum.US); | |
billToAddress.setZip("01803-3747"); | |
auth.setBillToAddress(billToAddress); | |
CardType card = new CardType(); | |
card.setNumber("375001010000003"); | |
card.setExpDate("0112"); | |
card.setCardValidationNum("349"); | |
card.setType(MethodOfPaymentTypeEnum.AX); | |
credit.setCard(card); | |
CreditResponse response = new LitleOnline().credit(credit); | |
//Display Results | |
System.out.println("Response: " + response.getResponse()); | |
System.out.println("Message: " + response.getMessage()); | |
System.out.println("Litle Transaction ID: " + response.getLitleTxnId()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment