developer:soap-1.3:methods:addreceipt

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:addreceipt [2010/08/09 15:39]
epouchak
developer:soap-1.3:methods:addreceipt [2010/09/02 10:40]
irina
Line 77: Line 77:
 <code vb> <code vb>
 </​code>​ </​code>​
 +
 +==== .NET C# ====
 +<code c>
 +usaepay.Receipt receipt = new usaepay.Receipt();​
 +            receipt.Name = "​receipt2";​
 +            receipt.Target = "​email";​
 +            receipt.Subject = "​receipt2";​
 +            receipt.FromEmail = "​devsupport@usaepay.com";​
 +            receipt.ContentType = "​text";​
 +
 +            string message = "Yippy Skippy";​
 +            byte[] toencodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(message);​
 +            string returnValue = System.Convert.ToBase64String(toencodeAsBytes);​
 +            receipt.TemplateText = returnValue;​
 +
 +            string receiptRefNum;​
 +
 +            try
 +            {
 +                receiptRefNum = client.addReceipt(token,​ receipt);
 +                MessageBox.Show(string.Concat(receiptRefNum));​
 +
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +</​code>​
 +
 ==== XML ==== ==== XML ====
 Request: Request:
developer/soap-1.3/methods/addreceipt.txt ยท Last modified: 2010/10/13 15:51 by irina

Page Tools