c# - The URL will not let me to add order and description -


this how should have added order idea , description payment on home. when debugger url gives me error provides added order , description of url.

var order = datetime.now.year + helper.settings.nytal(4); var description = "&description=medlemskab"; var client = new restclient("http://api.blabla.net/subscriptions?currency=dkk&order_id=" + order + description); 

        var order = datetime.now.year + helper.settings.nytal(4);         var description = "&description=medlemskab";         var request = string.format("http://api.blabla.net/subscriptions?currency=dkk&order_id={0}{1}", order, description);         var client = new restclient(request); 

see if works, if doesn't i'll delete this. might conversion issue you're trying append int string directly without converting beforehand.

alternatively:

var order = datetime.now.year + helper.settings.nytal(4); //.tostring() var description = "&description=medlemskab"; var client = new restclient("http://api.blabla.net/subscriptions?currency=dkk&order_id=" + order.tostring() + description); 

whatever floats boat. said, i'll delete if i'm wrong.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -