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
developer:soap-1.3:methods:updatereceipt [2010/09/02 10:42]
irina
developer:soap-1.3:methods:updatereceipt [2010/10/13 15:52] (current)
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>​
  
developer/soap-1.3/methods/updatereceipt.txt ยท Last modified: 2010/10/13 15:52 by irina

Page Tools