developer:soap-1.1:methods:converttrantocust

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
developer:soap-1.1:methods:converttrantocust [2009/06/24 13:41]
charlie created
developer:soap-1.1:methods:converttrantocust [2010/09/29 14:26]
irina
Line 61: Line 61:
  
 |string |Returns the CustNum of the new customer. | |string |Returns the CustNum of the new customer. |
 +
 +==== .NET C# ====
 +<code c>
 +string refnum = "​46993415";​
 +            usaepay.FieldValue[] update = new usaepay.FieldValue[2];​
 +            for (int i = 0; i < 2; i++) {
 +
 +                update[i] = new usaepay.FieldValue();​
 +
 +            }
 +
 +            update[0].Field = "​Schedule";​ update[0].Value = "​weekly";​
 +            update[1].Field = "​NumLeft";​ update[1].Value = "​7";​
 +
 +            string response;
 +
 +            try
 +            {
 +                response = client.convertTranToCust(token,​ refnum, update);
 +
 +                MessageBox.Show(string.Concat("​Customer Number: ",
 +                            response));
 +              ​
 +            }
 +
 +
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
  
 ===== Change History ===== ===== Change History =====
developer/soap-1.1/methods/converttrantocust.txt ยท Last modified: 2010/10/21 12:43 by irina

Page Tools