checkoutStatusCtx.put("completeStatus", status);
if (UtilValidate.isNotEmpty(order.getExternalTransaction())) {
ExternalTransactionType[] externalTransactions = order.getExternalTransaction();
for (int count = 0; count < externalTransactions.length; count++) {
ExternalTransactionType externalTransaction = externalTransactions[count];
if (UtilValidate.isNotEmpty(externalTransaction.getExternalTransactionID())) {
externalTransactionId = externalTransaction.getExternalTransactionID();
}
if (UtilValidate.isNotEmpty(externalTransaction.getExternalTransactionTime())) {
externalTransactionTime = EbayStoreHelper.convertDate(externalTransaction.getExternalTransactionTime().getTime(), locale);
}
if (UtilValidate.isNotEmpty(externalTransaction.getFeeOrCreditAmount())) {
feeOrCreditAmount = externalTransaction.getFeeOrCreditAmount().getValue();
}
if (UtilValidate.isNotEmpty(externalTransaction.getPaymentOrRefundAmount())) {
paymentOrRefundAmount = externalTransaction.getPaymentOrRefundAmount().getValue();
}
}
}
externalTransactionCtx.put("externalTransactionID", externalTransactionId);
externalTransactionCtx.put("externalTransactionTime", externalTransactionTime);