teya integration / payment

This commit is contained in:
2023-11-03 12:43:41 +00:00
parent 90114551ff
commit 5b81989f2f
@@ -54,9 +54,9 @@ public class PaymentGatewayTeya implements PaymentGateway {
double roundedValue = RoundUtils.round(payinfo.getTotal());
new Application().teyaTransaction(roundedValue, getPaymentWindow());
new Application().teyaTransaction(roundedValue, getPaymentWindow(), payinfo.m_sTransactionID);
while (!AppContext.getTeyaSuccessfulPayment()) {
while (AppContext.getTeyaPaymentResult() == null) {
try {
log.info("uniCenta-oPos: waiting for payment to complete ....");
Thread.sleep(1000);
@@ -71,9 +71,9 @@ public class PaymentGatewayTeya implements PaymentGateway {
payinfo.setVerification("Chip and Pin");
payinfo.setChipAndPin(true);
payinfo.paymentOK(
"Teya",
"Teya",
"Teya"
AppContext.getTeyaPaymentResult().getReferenceId(),
AppContext.getTeyaPaymentResult().getGatewayPaymentId(),
AppContext.getTeyaPaymentResult().getStatus()
);
}