@Test public void getReturnStatusFailTest() { assertEquals("Payment reversal failed", ReturnStatus.PAYMENT_REVERSAL_FAILED, wirecardPaymentService.getReturnStatus(returnFail)); }
@Override public ReturnStatus getReturnStatus(Payment response) { TransactionState transactionState; ReturnStatus returnStatus = ReturnStatus.PAYMENT_REVERSAL_FAILED; if (response != null) { transactionState = response.getTransactionState(); if (transactionState == TransactionState.SUCCESS) { returnStatus = ReturnStatus.PAYMENT_REVERSED; } } return returnStatus; }
DefaultWirecardPaymentService implements WirecardPaymentService { @Override public ReturnStatus getReturnStatus(Payment response) { TransactionState transactionState; ReturnStatus returnStatus = ReturnStatus.PAYMENT_REVERSAL_FAILED; if (response != null) { transactionState = response.getTransactionState(); if (transactionState == TransactionState.SUCCESS) { returnStatus = ReturnStatus.PAYMENT_REVERSED; } } return returnStatus; } }
DefaultWirecardPaymentService implements WirecardPaymentService { @Override public ReturnStatus getReturnStatus(Payment response) { TransactionState transactionState; ReturnStatus returnStatus = ReturnStatus.PAYMENT_REVERSAL_FAILED; if (response != null) { transactionState = response.getTransactionState(); if (transactionState == TransactionState.SUCCESS) { returnStatus = ReturnStatus.PAYMENT_REVERSED; } } return returnStatus; }  }
DefaultWirecardPaymentService implements WirecardPaymentService { @Override public ReturnStatus getReturnStatus(Payment response) { TransactionState transactionState; ReturnStatus returnStatus = ReturnStatus.PAYMENT_REVERSAL_FAILED; if (response != null) { transactionState = response.getTransactionState(); if (transactionState == TransactionState.SUCCESS) { returnStatus = ReturnStatus.PAYMENT_REVERSED; } } return returnStatus; }  @Override ReturnStatus getReturnStatus(Payment response); void setReturnRequestStatus(final ReturnRequestModel returnRequest, final ReturnStatus status); @Override OrderStatus getOrderStatus(Payment response); @Override void storePares(AbstractOrderModel abstractOrderModel, String pares); @Override void storeToken(AbstractOrderModel abstractOrderModel, String token); @Override void storeMPIthreeDparameters(AbstractOrderModel abstractOrderModel,
                                         String cardholderAuthenticationStatus,
                                         String cardholderAuthenticationValue,
                                         String eci,
                                         String xid); @Required void setModelService(ModelService modelService); @Required void setWirecardTransactionService(WirecardTransactionService wirecardTransactionService); }
DefaultWirecardPaymentService implements WirecardPaymentService { @Override public ReturnStatus getReturnStatus(Payment response) { TransactionState transactionState; ReturnStatus returnStatus = ReturnStatus.PAYMENT_REVERSAL_FAILED; if (response != null) { transactionState = response.getTransactionState(); if (transactionState == TransactionState.SUCCESS) { returnStatus = ReturnStatus.PAYMENT_REVERSED; } } return returnStatus; }  @Override ReturnStatus getReturnStatus(Payment response); void setReturnRequestStatus(final ReturnRequestModel returnRequest, final ReturnStatus status); @Override OrderStatus getOrderStatus(Payment response); @Override void storePares(AbstractOrderModel abstractOrderModel, String pares); @Override void storeToken(AbstractOrderModel abstractOrderModel, String token); @Override void storeMPIthreeDparameters(AbstractOrderModel abstractOrderModel,
                                         String cardholderAuthenticationStatus,
                                         String cardholderAuthenticationValue,
                                         String eci,
                                         String xid); @Required void setModelService(ModelService modelService); @Required void setWirecardTransactionService(WirecardTransactionService wirecardTransactionService);  }