kh.gov.nbc.bakong_khqr.model.AdditionalDataFieldTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-java Show documentation
Show all versions of sdk-java Show documentation
The standardization of KHQR code specifications will help promote wider use of
mobile retail payments in Cambodia and provide consistent user experience for merchants
and consumers. It can enable interoperability in the payment industry. A common QR code
would facilitate payments among different schemes, e-wallets and banks and would
encourage small merchants to adopt KHQR code as payment method.
KHQR is created for retail or remittance in Cambodia and Cross-Border. It only
requires a single QR for receiving transactions from any payment provider through Bakong
including Bakong App.
The newest version!
package kh.gov.nbc.bakong_khqr.model;
import kh.gov.nbc.bakong_khqr.core.TLV;
import kh.gov.nbc.bakong_khqr.utils.StringUtils;
public class AdditionalDataFieldTemplate implements TLV {
private AdditionalDataField value;
@Override
public String getTag() {
return KHQRMerchantPresentedCodes.ADDITIONAL_DATA_FIELD_TEMPLATE;
}
@Override
public AdditionalDataField getValue() {
return value;
}
@Override
public String toString() {
if (value == null) {
return StringUtils.EMPTY;
}
final String string = value.toString();
if (StringUtils.isBlank(string)) {
return StringUtils.EMPTY;
}
return String.format("%s%02d%s", getTag(), string.length(), string);
}
public void setValue(AdditionalDataField value) {
this.value = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy