public string ActivateOrder(string rno) { Configuration configuration = new Configuration( Country.Code.SE, Language.Code.SV, Currency.Code.SEK, Encoding.Sweden) { Eid = 5160, Secret = "tE94QeKzSdUVJGe", IsLiveMode = false, }; Klarna.Api.Api api = new Klarna.Api.Api(configuration); ActivateReservationResponse response = api.Activate( rno, string.Empty, // OCR Number ReservationFlags.SendByEmail // Flags ); return("Invoice number: " + response.InvoiceNumber); }
public string ActivateOrder(string rno) { Configuration configuration = new Configuration( Country.Code.SE, Language.Code.SV, Currency.Code.SEK, Encoding.Sweden) { Eid = 5160, Secret = "tE94QeKzSdUVJGe", IsLiveMode = false, }; Klarna.Api.Api api = new Klarna.Api.Api(configuration); ActivateReservationResponse response = api.Activate( rno, string.Empty, // OCR Number ReservationFlags.SendByEmail // Flags ); return "Invoice number: " + response.InvoiceNumber; }