title: creating desktop application self service kiosk using wordpay in c#
body: <p>I am developing desktop application I have written the backend code need to know how to get that token parameter and another thing in my case it will be self-service kiosk like <a href="https://www.youtube.com/watch?v=neBgllAvOWY" rel="nofollow noreferrer">https://www.youtube.com/watch?v=neBgllAvOWY</a> how I will get credit card details to for transaction in a desktop application.</p>
  
  <pre><code>        System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
          Worldpay.Sdk.WorldpayRestClient restClient = new 
  
          Worldpay.Sdk.WorldpayRestClient("https://api.worldpay.com/v1", "T_S_11cca65b-c15a-467c-8561-35ecfa07725b");
  
  
  
         var orderRequest = new OrderRequest()
          {
              amount = 1999,
              currencyCode = CurrencyCode.GBP.ToString(),
              name = "Joe Bloggs",
              orderDescription = "Order description",
              token = "T_C_9feb32e6-eac0-4345-bba0-3319d1ddbe1f"
          };
  
          var address = new Address()
          {
              address1 = "line 1",
              address2 = "line 2",
              city = "city",
              countryCode = CountryCode.GB.ToString(),
              postalCode = "AB1 2CD"
          };
  
          orderRequest.billingAddress = address;
  
  
          try
          {
              OrderResponse orderResponse = restClient.GetOrderService().Create(orderRequest);
              MessageBox.Show("Order code: " + orderResponse.orderCode);
          }
          catch (WorldpayException er)
          {
              MessageBox.Show("Error code:" + er.apiError.customCode);
              MessageBox.Show("Error description: " + er.apiError.description);
              MessageBox.Show("Error message: " + er.apiError.message);
          }
  </code></pre>