private MultiSafepay.Model.OrderRequest CreateRedirectOrder(PaymentModel pm) { pm.Errors = new List <string>(); MultiSafepay.Model.PaymentOptions paymentOptions = new MultiSafepay.Model.PaymentOptions(); paymentOptions.CancelRedirectUrl = pm.CancelRedirectUrl + "/" + pm.OrderId; paymentOptions.NotificationUrl = pm.NotificationUrl; paymentOptions.SuccessRedirectUrl = pm.SuccessRedirectUrl + "/" + pm.OrderId; var ordermodel = MultiSafepay.Model.OrderRequest.CreateRedirect(pm.OrderId, pm.Description, pm.Amount, pm.Currency, paymentOptions); ordermodel.Customer = new MultiSafepay.Model.Customer() { Locale = pm.Locale, Country = pm.Country }; return(ordermodel); }
private MultiSafepay.Model.OrderRequest CreateRedirectOrder(PaymentModel pm) { pm.Errors = new List<string>(); MultiSafepay.Model.PaymentOptions paymentOptions = new MultiSafepay.Model.PaymentOptions(); paymentOptions.CancelRedirectUrl = pm.CancelRedirectUrl + "/" + pm.OrderId; paymentOptions.NotificationUrl = pm.NotificationUrl; paymentOptions.SuccessRedirectUrl = pm.SuccessRedirectUrl + "/" + pm.OrderId; var ordermodel = MultiSafepay.Model.OrderRequest.CreateRedirect(pm.OrderId, pm.Description, pm.Amount, pm.Currency, paymentOptions); ordermodel.Customer = new MultiSafepay.Model.Customer() { Locale = pm.Locale, Country = pm.Country }; return ordermodel; }