This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
developer:soap-1.2:methods:converttrantocust [2010/10/19 12:08] irina |
developer:soap-1.2:methods:converttrantocust [2010/10/19 12:08] irina |
||
---|---|---|---|
Line 135: | Line 135: | ||
response = client.convertTranToCust(token, refnum, update) | response = client.convertTranToCust(token, refnum, update) | ||
MsgBox(response) | MsgBox(response) | ||
+ | </code> | ||
+ | |||
+ | ==== .NET C# ==== | ||
+ | <code c> | ||
+ | string refnum = "46978031"; | ||
+ | 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> | </code> | ||