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
Next revision
Previous revision
developer:soap-1.3:methods:addreceipt [2010/08/09 15:39]
epouchak
developer:soap-1.3:methods:addreceipt [2010/10/13 15:51]
irina
Line 76: Line 76:
  
 <code vb> <code vb>
 +Dim receipt As usaepay.Receipt = New usaepay.Receipt
 +        receipt.Name = "test receipt_VB"​
 +        receipt.Target = "​email"​
 +        receipt.Subject = "test receipt"​
 +        receipt.FromEmail = "​devsupport@usaepay.com"​
 +        receipt.ContentType = "​text"​
 +
 +        Dim message As String
 +        message = "Yippy skippy"​
 +        Dim toencode As Byte() = System.Text.ASCIIEncoding.ASCII.GetBytes(message)
 +        Dim returnValue As String
 +        returnValue = System.Convert.ToBase64String(toencode)
 +        receipt.TemplateText = returnValue
 +
 +        Dim receiptNum As String
 +        receiptNum = client.addReceipt(token,​ receipt)
 +        MsgBox(receiptNum)
 </​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