public int HireMovie(int staffid, int customerid, int rentalid, double paymentAmount, string creditcardno, string expiry, string cvv) { int transactionID = -1; CreditCardServiceClient cc = new CreditCardServiceClient(); transactionID = cc.Debit(creditcardno, paymentAmount); if (transactionID != -1) { df.PayForMovie((byte)staffid, (byte)customerid, (byte)rentalid, paymentAmount); } return(transactionID); }
public int RefundT(int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv) { //return string.Format("{0}:{1}:{2}:{3}:{4}:{5}",staffid, customerid, paymentAmount, creditcardno, expiry, cvv) ; int tID = -1; try { CreditCardServiceClient cc = new CreditCardServiceClient(); tID = cc.Credit(creditcardno, paymentAmount); return(tID); } catch (Exception e) { } return(tID); }
public int RefundT(int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv) { //return string.Format("{0}:{1}:{2}:{3}:{4}:{5}",staffid, customerid, paymentAmount, creditcardno, expiry, cvv) ; int tID = -1; try { CreditCardServiceClient cc = new CreditCardServiceClient(); tID = cc.Credit(creditcardno, paymentAmount); return tID; } catch (Exception e) { } return tID; }
public int HireMovie(int staffid, int customerid, int rentalid, double paymentAmount, string creditcardno, string expiry, string cvv) { int transactionID = -1; CreditCardServiceClient cc = new CreditCardServiceClient(); transactionID = cc.Debit(creditcardno, paymentAmount); if (transactionID != -1) { df.PayForMovie((byte)staffid, (byte)customerid, (byte)rentalid, paymentAmount); } return transactionID; }