// Elimizde order nesnesi var ise public void SavePayment(NebimV3.Orders.RetailSale order, myPaymentTypes paymentType, string creditCardTypeCode, byte installment, string maskedCCNo, string provisionNo) { try { if (paymentType == myPaymentTypes.bank) { this.SavePaymentByBank(order); } else if (paymentType == myPaymentTypes.cash) { this.SavePaymentByCash(order, _nebimIntegrationSettings.API_CashAccountCode);//cashAccountCode="100.01.001" } else { this.SavePaymentByCreditCard(order, creditCardTypeCode, installment, maskedCCNo, provisionNo); } } catch (Exception ex) { NebimV3.Library.V3Exception v3Ex = ex as NebimV3.Library.V3Exception; if (v3Ex != null) { throw new Exception(NebimV3.ApplicationCommon.ExceptionHandlerBase.Default.GetExceptionMessage(v3Ex), ex); } throw; } }
// Elimizde yalnızca sipariş numarası var ise public void SavePayment(string orderNumber, myPaymentTypes paymentType, string creditCardTypeCode, byte installment, string maskedCCNo, string provisionNo) { NebimV3.Orders.RetailSale order = new NebimV3.Orders.RetailSale(); order.OrderNumber = orderNumber; order.Load(); this.SavePayment(order, paymentType, creditCardTypeCode, installment, maskedCCNo, provisionNo); }