Object describing a receipt template.
This object contains all of the data needed for adding or updating a receipt template on the gateway.
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) |
Dim receipt As eBizCharge.Receipt = New eBizCharge.Receipt
receipt.Name = "test receipt_VB"
receipt.Target = "email"
receipt.Subject = "test receipt"
receipt.FromEmail = "devsupport@eBizCharge.com"
receipt.ContentType = "text"
eBizCharge.Receipt receipt = new eBizCharge.Receipt();
receipt.Name = "test receipt";
receipt.Target = "email";
receipt.Subject = "test receipt";
receipt.FromEmail = "devsupport@eBizCharge.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;