// Dokonywanie wypłaty // Wywołanie metody CreatePaymentGateway(...) zwraca nam obiekt utworzony // w zależności od wyboru rodzaju wypłaty przez klienta public void MakePayment(EPaymentMethod method, Operacja product) { PaymentGatewayFactory factory = new PaymentGatewayFactory(); this.gateway = factory.CreatePaymentGateway(method, product); this.gateway.MakePayment(product); }
public Payment(Alteration alteration, Customer customer, decimal amount, EPaymentMethod paymentMethod) { this.Alteration = alteration; this.Customer = customer; this.Amount = amount; this.PaymentMethod = paymentMethod; }
public static Order New(EPaymentMethod paymentMethod, Guid shopperId, Guid shippingId) { return(new Order { Id = Guid.NewGuid(), CreatedAt = DateTime.Now, ShopperId = shopperId, ShippingAddressId = shippingId, PaymentStatus = EPaymentStatus.WaitingApproval, PaymentMethod = paymentMethod }); }
/// <summary> /// Seznam vsech aktivnich platebnich metod /// </summary> /// /// <returns>paymentMethodsArray</returns> public static EPaymentMethod[] PaymentMethodsList() { AxisEPaymentProviderV2Service provider = new AxisEPaymentProviderV2Service(GopayConfig.Ws); object[] paymentMethods = provider.paymentMethodList(); EPaymentMethod[] paymentMethodsArray = new EPaymentMethod[paymentMethods.Length]; for (int i = 0; i < paymentMethods.Length; i++) { paymentMethodsArray[i] = (EPaymentMethod)paymentMethods[i]; } return(paymentMethodsArray); }
public virtual IPaymentGateway CreatePaymentGateway(EPaymentMethod method, Operacja prod) { IPaymentGateway gateway = null; switch (method) { case EPaymentMethod.EURONET: gateway = new OperatorOne(); break; case EPaymentMethod.OTHER: gateway = new OperatorTwo(); break; default: break; } return(gateway); }
public virtual IPaymentGateway CreatePaymentGateway(EPaymentMethod method, Product prod) { IPaymentGateway gateway = null; switch (method) { case EPaymentMethod.BANK_ONE: gateway = new BankOne(); break; case EPaymentMethod.BANK_TWO: gateway = new BankTwo(); break; default: break; } return(gateway); }
public bool GetLicenseInfo(UInt32 nLicenseIndex, ref UInt32 arg1, ref UInt32 arg2, ref Int32 arg3, ref Int32 arg4, ref EPaymentMethod arg5, ref UInt32 arg6, ref Int32 arg7, StringBuilder arg8) { return(this.GetFunction <NativeGetLicenseInfoUUUIIEUIS>(this.Functions.GetLicenseInfo13)(this.ObjectAddress, nLicenseIndex, ref arg1, ref arg2, ref arg3, ref arg4, ref arg5, ref arg6, ref arg7, arg8)); }
/// <summary> /// Seznam vsech aktivnich platebnich metod /// </summary> /// /// <returns>paymentMethodsArray</returns> public static EPaymentMethod[] PaymentMethodsList() { AxisEPaymentProviderV2Service provider = new AxisEPaymentProviderV2Service(GopayConfig.Ws); object[] paymentMethods = provider.paymentMethodList(); EPaymentMethod[] paymentMethodsArray = new EPaymentMethod[paymentMethods.Length]; for (int i = 0; i < paymentMethods.Length; i++) { paymentMethodsArray[i] = (EPaymentMethod)paymentMethods[i]; } return paymentMethodsArray; }
public bool GetLicenseInfo(UInt32 nLicenseIndex, ref UInt32 pRTime32Created, ref UInt32 pRTime32NextProcess, ref Int32 pnMinuteLimit, ref Int32 pnMinutesUsed, ref EPaymentMethod pePaymentMethod, ref UInt32 punFlags, ref Int32 pnTerritoryCode, StringBuilder prgchPurchaseCountryCode) { return(this.GetFunction <NativeGetLicenseInfoUUUIIEUIS>(this.Functions.GetLicenseInfo11)(this.ObjectAddress, nLicenseIndex, ref pRTime32Created, ref pRTime32NextProcess, ref pnMinuteLimit, ref pnMinutesUsed, ref pePaymentMethod, ref punFlags, ref pnTerritoryCode, prgchPurchaseCountryCode)); }