teya integration / payment
This commit is contained in:
@@ -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()
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user