/// <summary> /// Initiating a new Klarna Offline Order /// </summary> /// <param name="cart">The cart for the order</param> /// <param name="config">The merchant config to be used</param> /// <param name="terminal">What terminal is the purchase from?</param> /// <param name="phonenumber">Phonenumber of the customer incl countrycode</param> /// <param name="merchantReference">The store-reference for this order</param> public OfflineOrder(Klarna.Entities.Cart cart, MerchantConfig config, string terminal, string phonenumber, string merchantReference, bool autoActivate = true) : base(cart, config) { mobile_no = phonenumber; _status = Status.NotSent; _cart = cart; _config = config; _terminalId = terminal; auto_activate = autoActivate; verifyPhoneForCountry(); _merchantReference = merchantReference; }
/// <summary> /// Initiating a new Klarna Offline Order /// </summary> /// <param name="cart">The cart for the order</param> /// <param name="config">The merchant config to be used</param> /// <param name="terminal">What terminal is the purchase from?</param> /// <param name="phonenumber">Phonenumber of the customer incl countrycode</param> /// <param name="merchantReference">The store-reference for this order</param> /// <param name="postbackUri">The URL on your end that Klanra will push order data to after completion.</param> public OfflineOrder(Klarna.Entities.Cart cart, MerchantConfig config, string terminal, string phonenumber, string merchantReference, Uri postbackUri, bool autoActivate = true) : this(cart, config, terminal, phonenumber, merchantReference, autoActivate) { _postbackUri = postbackUri; }