Differences

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

Link to this comparison view

developer:soap-1.6:objects:receipt [2012/08/04 11:42] (current)
tem created
Line 1: Line 1:
 +<embed ..:contents/>
 +====== Receipt ======
 +
 +Object describing a receipt template.
 +
 +===== Description =====
 +
 +This object contains all of the data needed for adding or updating a receipt template on the gateway.
 +
 +
 +===== Properties =====
 +
 +^Type    ^Name    ^Description    ^
 +|integer |ReceiptRefNum |Gateway assigned ID of Receipt.  (Ignored when adding a receipt) |
 +|string |Name |Name of receipt (used to identify receipt) |
 +|string |Target |Type of receipt output  (Email or Print) |
 +|string |Subject |Subject line of email (Only applicable if "Target"  is "Email") |
 +|string |FromEmail |From email address (Only applicable if "Target"  is "Email") |
 +|string |ContentType |Content types supported by receipt (HTML, Text or Both) |
 +|string |TemplateHTML |HTML version of template (Base-64 Encoded) |
 +|string |TemplateText |Text version of template (Base-64 Encoded) |
 +
 +===== Places Used =====
 +
 +  * [[..:methods:addReceipt]]
 +  * [[..:methods:updateReceipt]]
 +  * [[..:methods:getReceipt]]
 +
 +===== Examples =====
 +
 +==== .NET 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"
 +</code>
 +
 +==== .NET C# ====
 +<code c>
 +usaepay.Receipt receipt = new usaepay.Receipt();
 +            receipt.Name = "test receipt";
 +            receipt.Target = "email";
 +            receipt.Subject = "test receipt";
 +            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;
 + 
 +</code>
 +
 +
 +===== Change History =====
 +
 +^Version ^Change ^
 +| [[developer:soap-1.3:objects:receipt|1.3]] | Object added in 1.3 release |
  
 
developer/soap-1.6/objects/receipt.txt · Last modified: 2012/08/04 11:42 by tem
 

Wiki Login| Wiki Index | Update Profile| Un/ Subscribe to Changes

USA ePay and the USA ePay logo are registered trademarks of GorCorp Inc.
Copyright © 2008, GorCorp Inc., All Rights Reserved