com.hps.integrator.applepay.ecv1.PaymentTokenHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of secure-submit Show documentation
Show all versions of secure-submit Show documentation
The SecureSubmit Java SDK simplifies processing of credit card transactions using Heartland Payment Systems' Portico Payment Gateway
package com.hps.integrator.applepay.ecv1;
public class PaymentTokenHeader
{
//
private final String mEphemeralPublicKey;
private final String mPublicKeyHash;
private final String mTransactionId;
private final String mApplicationData;
//
public PaymentTokenHeader(
String ephemeralPublicKey,
String publicKeyHash,
String transactionId
)
{
this.mEphemeralPublicKey = ephemeralPublicKey;
this.mPublicKeyHash = publicKeyHash;
this.mTransactionId = transactionId;
this.mApplicationData = null;
}
public PaymentTokenHeader(
String ephemeralPublicKey,
String publicKeyHash,
String transactionId,
String applicationData
)
{
this.mEphemeralPublicKey = ephemeralPublicKey;
this.mPublicKeyHash = publicKeyHash;
this.mTransactionId = transactionId;
this.mApplicationData = applicationData;
}
public String getEphemeralPublicKey() {
return mEphemeralPublicKey;
}
public String getPublicKeyHash() {
return mPublicKeyHash;
}
public String getTransactionId() {
return mTransactionId;
}
public String getApplicationData()
{
return this.mApplicationData;
}
public boolean hasApplicationData()
{
return this.mApplicationData != null && this.mApplicationData.length() > 0;
}
}