public class FullTransaction extends BaseTransaction
options| Constructor and Description |
|---|
FullTransaction()
Default constructor.
|
FullTransaction(Options options)
Constructor with options.
|
| Modifier and Type | Method and Description |
|---|---|
FullTransactionCaptureResponse |
capture(String token,
String buyOrder,
String authorizationCode,
double captureAmount)
Captures the transaction.
|
FullTransactionCommitResponse |
commit(String token,
Long idQueryInstallments,
Byte deferredPeriodIndex,
Boolean gracePeriod)
Commits the transaction.
|
static void |
configureForIntegration(String commerceCode,
String apiKey)
Configures the transaction for integration environment.
|
static void |
configureForProduction(String commerceCode,
String apiKey)
Configures the transaction for production environment.
|
static void |
configureForTesting()
Configures the transaction for testing environment.
|
static void |
configureForTestingDeferred()
Configures the transaction for testing deferred environment.
|
FullTransactionCreateResponse |
create(String buyOrder,
String sessionId,
double amount,
short cvv,
String cardNumber,
String cardExpirationDate)
Creates a new FullTransaction.
|
FullTransactionInstallmentResponse |
installments(String token,
byte installmentsNumber)
Starts the process of creating installments for the transaction.
|
FullTransactionRefundResponse |
refund(String token,
double amount)
Starts the process of refunding the transaction.
|
FullTransactionStatusResponse |
status(String token)
Gets the status of the transaction.
|
public FullTransaction()
public FullTransaction(Options options)
options - The options to use for this transaction.public FullTransactionCreateResponse create(String buyOrder, String sessionId, double amount, short cvv, String cardNumber, String cardExpirationDate) throws IOException, TransactionCreateException
buyOrder - The buy order.sessionId - The session id.amount - The amount.cvv - The cvv of the card.cardNumber - The number of the card.cardExpirationDate - The expiration date of the card.IOException - If there's an error in the communication with the server.TransactionCreateException - If there's an error in the creation of the transaction.public FullTransactionInstallmentResponse installments(String token, byte installmentsNumber) throws IOException, TransactionInstallmentException
token - The token of the transaction.installmentsNumber - The number of installments.TransactionInstallmentException - If there's an error in the creation of the installments.IOException - If there's an error in the communication with the server.public FullTransactionCommitResponse commit(String token, Long idQueryInstallments, Byte deferredPeriodIndex, Boolean gracePeriod) throws IOException, TransactionCommitException
token - The token of the transaction.idQueryInstallments - The id of the query installments.deferredPeriodIndex - The index of the deferred period.gracePeriod - The grace period.IOException - If there's an error in the communication with the server.TransactionCommitException - If there's an error in the commit process.public FullTransactionStatusResponse status(String token) throws IOException, TransactionStatusException
token - The token of the transaction.IOException - If there's an error in the communication with the server.TransactionStatusException - If there's an error in the status process.public FullTransactionRefundResponse refund(String token, double amount) throws IOException, TransactionRefundException
token - The token of the transaction.amount - The amount to be refunded.IOException - If there's an error in the communication with the server.TransactionRefundException - If there's an error in the refund process.public FullTransactionCaptureResponse capture(String token, String buyOrder, String authorizationCode, double captureAmount) throws IOException, TransactionCaptureException
token - The token of the transaction.buyOrder - The buy order of the transaction.authorizationCode - The authorization code of the transaction.captureAmount - The amount to be captured.IOException - If there's an error in the communication with the server.TransactionCaptureException - If there's an error in the capture process.public static void configureForIntegration(String commerceCode, String apiKey)
commerceCode - The commerce code.apiKey - The api key.public static void configureForProduction(String commerceCode, String apiKey)
commerceCode - The commerce code.apiKey - The api key.public static void configureForTesting()
public static void configureForTestingDeferred()
Copyright © 2018–2024. All rights reserved.