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
Next revision
Previous revision
developer:soap-1.3:methods:updatereceipt [2010/08/09 16:18]
epouchak
developer:soap-1.3:methods:updatereceipt [2010/10/13 15:52]
irina
Line 79: Line 79:
  
 <code vb> <code vb>
 +Dim receiptNum As String
 +        receiptNum = "​10"​
 +
 +        Dim receipt As usaepay.Receipt = New usaepay.Receipt
 +        receipt.Name = "test VB_receipt"​
 +        receipt.Target = "​email"​
 +        receipt.Subject = "​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 response As String
 +        response = client.updateReceipt(token,​ receiptNum, receipt)
 +        MsgBox(response)
 </​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