 <h:panelGroup id="creditCard" rendered="#{pharmacyPreSettleController.preBill.paymentMethod eq 'Card'}">
                                                    <pa:creditCardDetailsAsOnlyPayment paymentMethodData="#{pharmacyPreSettleController.paymentMethodData}"/>
                                                    <p:ajax event="keyup" process="@this" listener="#{pharmacyPreSettleController.checkAndUpdateBalance()}" update="pBillDetails"/>
                                                </h:panelGroup>

   