Example #1
0
 public void NotifyBankTransactionCompleted(Guid pOrderNumber, PaymentTransactionOutcome pPaymentTransactionOutcome)
 {
     OrderProvider pOrderProvider = new OrderProvider();
     Order Order = RetrieveDeliveryOrderByOrderNumber(pOrderNumber);
     if (pPaymentTransactionOutcome == PaymentTransactionOutcome.Successful)
     {
         pOrderProvider.SubmitDelivery(Order);
     }
     else if (pPaymentTransactionOutcome == PaymentTransactionOutcome.Failure)
     {
         pOrderProvider.CancelOrder(Order);
     }
 }