developer:soap-1.3:methods:updatereceipt

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
developer:soap-1.3:methods:updatereceipt [2010/08/09 16:18]
epouchak
developer:soap-1.3:methods:updatereceipt [2010/09/02 10:42]
irina
Line 80: Line 80:
 <code vb> <code vb>
 </​code>​ </​code>​
 +
 +==== .NET C# ====
 +<code c>
 +string receiptRefNum = "​8";​
 +            usaepay.Receipt receipt = new usaepay.Receipt();​
 +
 +            receipt.Name = "test two";
 +            receipt.FromEmail = "​test@test.com";​
 +            receipt.ContentType = "​both";​
 +            receipt.Target = "​email";​
 +
 +            string message = "Yippy Skippy";​
 +            byte[] toencodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(message);​
 +            string returnValue = System.Convert.ToBase64String(toencodeAsBytes);​
 +            receipt.TemplateText = returnValue;​
 +
 +            string response;
 +
 +            try
 +            {
 +                response = client.updateReceipt(token,​ receiptRefNum,​ receipt);
 +                MessageBox.Show(string.Concat(response));​
 +
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
 +
 ==== XML ==== ==== XML ====
 Request: Request:
developer/soap-1.3/methods/updatereceipt.txt ยท Last modified: 2010/10/13 15:52 by irina

Page Tools