com.global.api.gateways.bill_pay.responses.TransactionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.gateways.bill_pay.responses;
import com.global.api.entities.Transaction;
public class TransactionResponse extends BillPayResponseBase {
public Transaction map() {
Transaction result = new Transaction();
result.setResponseCode(response.getString("a:ResponseCode"));
result.setResponseMessage(getFirstResponseMessage(response));
result.setAvsResponseCode(response.getString("a:AvsResponseCode"));
result.setAvsResponseMessage(response.getString("a:AvsResponseText"));
result.setCvnResponseCode(response.getString("a:CvvResponseCode"));
result.setCvnResponseMessage(response.getString("a:CvvResponseText"));
result.setClientTransactionId(response.getString("a:MerchantTransactionID"));
result.setTimestamp(response.getString("a:TransactionDate"));
result.setTransactionId(response.getString("a:Transaction_ID"));
result.setReferenceNumber(response.getString("a:ReferenceTransactionID"));
result.setToken(response.getString("a:Token"));
result.setConvenienceFee(response.getDecimal("a:ConvenienceFee"));
return result;
}
}