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()); 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 { try {
log.info("uniCenta-oPos: waiting for payment to complete ...."); log.info("uniCenta-oPos: waiting for payment to complete ....");
Thread.sleep(1000); Thread.sleep(1000);
@@ -71,9 +71,9 @@ public class PaymentGatewayTeya implements PaymentGateway {
payinfo.setVerification("Chip and Pin"); payinfo.setVerification("Chip and Pin");
payinfo.setChipAndPin(true); payinfo.setChipAndPin(true);
payinfo.paymentOK( payinfo.paymentOK(
"Teya", AppContext.getTeyaPaymentResult().getReferenceId(),
"Teya", AppContext.getTeyaPaymentResult().getGatewayPaymentId(),
"Teya" AppContext.getTeyaPaymentResult().getStatus()
); );
} }