public static OrderRequest CreateDirectPayAfterDeliveryOrder(string orderId, string description, int amountInCents, string currencyCode, PaymentOptions paymentOptions, GatewayInfo gatewayInfo, ShoppingCart shoppingCart, CheckoutOptions checkoutOptions, Customer customer) { return new OrderRequest( OrderType.Direct, orderId, description, amountInCents, currencyCode, paymentOptions) { GatewayId = "PAYAFTER", GatewayInfo = gatewayInfo, ShoppingCart = shoppingCart, Customer = customer, CheckoutOptions = checkoutOptions }; }
public static OrderRequest CreateDirectKlarnaOrder(string orderId, string description, int amountInCents, string currencyCode, PaymentOptions paymentOptions, GatewayInfo gatewayInfo, ShoppingCart shoppingCart, CheckoutOptions checkoutOptions, Customer customer, DeliveryAddress deliveryAddress) { return new OrderRequest( OrderType.Direct, orderId, description, amountInCents, currencyCode, paymentOptions) { GatewayId = "KLARNA", GatewayInfo = gatewayInfo, ShoppingCart = shoppingCart, Customer = customer, DeliveryAddress = deliveryAddress, CheckoutOptions = checkoutOptions }; }
public static OrderRequest CreateDirectEinvoiceOrder(string orderId, string description, int amountInCents, string currencyCode, PaymentOptions paymentOptions, GatewayInfo gatewayInfo, ShoppingCart shoppingCart, CheckoutOptions checkoutOptions, Customer customer, DeliveryAddress deliveryAddress) { return(new OrderRequest( OrderType.Direct, orderId, description, amountInCents, currencyCode, paymentOptions) { GatewayId = "EINVOICE", GatewayInfo = gatewayInfo, ShoppingCart = shoppingCart, Customer = customer, DeliveryAddress = deliveryAddress, CheckoutOptions = checkoutOptions }); }
public static OrderRequest CreateDirectPayAfterDeliveryOrder(string orderId, string description, int amountInCents, string currencyCode, PaymentOptions paymentOptions, GatewayInfo gatewayInfo, ShoppingCart shoppingCart, CheckoutOptions checkoutOptions, Customer customer) { return(new OrderRequest( OrderType.Direct, orderId, description, amountInCents, currencyCode, paymentOptions) { GatewayId = "PAYAFTER", GatewayInfo = gatewayInfo, ShoppingCart = shoppingCart, Customer = customer, CheckoutOptions = checkoutOptions }); }
public static OrderRequest CreateRedirectPayAfterDeliveryOrder(string orderId, string description, int amountInCents, string currencyCode, PaymentOptions paymentOptions, GatewayInfo gatewayInfo, ShoppingCart shoppingCart, Customer customer) { return(CreateRedirectPayAfterDeliveryOrder(orderId, description, amountInCents, currencyCode, paymentOptions, gatewayInfo, shoppingCart, new CheckoutOptions(), customer)); }