In the older tutorial guide (3.4.5), we could design the credit card layout on our own without using TPDForm. Sample code likes below
m_TPDCard = new TPDCard(mContext, new StringBuffer(credit), new StringBuffer(month), new StringBuffer(year),
new StringBuffer(cvv)).onSuccessCallback(new TPDCardTokenSuccessCallback() {
@Override
public void onSuccess(String s, TPDCardInfo tpdCardInfo, String s1) {
Log.d(TAG, "Prime: " + s);
prime = s;
}
}).onFailureCallback((i, s) -> Log.d(TAG, "Failed to get prime, error code: " + i + ", message: " + s));
m_TPDCard.createToken("UNKNOWN");
However, we found that even after upgrading the SDK to version 3.9.1, we still encountered the same error code as the following without making any changes to the code:
Failed to get prime, error code: -3, message: Internet Unavailable
I am sure that I can access the internet. Could you please help to check if there are any questions?
In the older tutorial guide (3.4.5), we could design the credit card layout on our own without using TPDForm. Sample code likes below
m_TPDCard = new TPDCard(mContext, new StringBuffer(credit), new StringBuffer(month), new StringBuffer(year),new StringBuffer(cvv)).onSuccessCallback(new TPDCardTokenSuccessCallback() {@Overridepublic void onSuccess(String s, TPDCardInfo tpdCardInfo, String s1) {Log.d(TAG, "Prime: " + s);prime = s;}}).onFailureCallback((i, s) -> Log.d(TAG, "Failed to get prime, error code: " + i + ", message: " + s));m_TPDCard.createToken("UNKNOWN");However, we found that even after upgrading the SDK to version 3.9.1, we still encountered the same error code as the following without making any changes to the code:
Failed to get prime, error code: -3, message: Internet UnavailableI am sure that I can access the internet. Could you please help to check if there are any questions?