ke Technical Documentation

Monday, August 30, 2010 User - Create CIM Record

Description

By enabling this service, a user can save his credit card info for future management. Ex: for monthly payments, for speed shopping.

  • Power By Snippet HTML (EMAIL_POWERED_BY_HTML if empty)
  • Power By Snippet TEXT (EMAIL_POWERED_BY_TXT if empty)
  • SSL Flag - show using SSL protocol; 1 for True, 0 for False
  • Gateway Type - authorize.net if empty; 1 for authorize.net, future gateways to come
  • Record Type - Profile if empty; 1 for Profile, 2 for Billing, 3 for Shipping
  • Gateway Info - code of the snippet containing Gateway pairs (url, login, key); this snippet has as builder code: User - Build CIM Info

Content Input Fields

  • TG_CIM_NAME - Name for CIM profile - mandatory
  • TG_CREDITCARD_TYPE - Credit Card Type (visa, mastercard, discover etc.) - mandatory
  • TG_CREDITCARD_NAME - Name on Credit Card - mandatory
  • TG_CREDITCARD_NUMBER - Credit Card Number - mandatory
  • TG_CREDITCARD_CVD - Credit Card CVD Number (3-4 digit number on credit card)
  • TG_CREDITCARD_EXPIRE_MONTH - Credit Card expiration month - mandatory
  • TG_CREDITCARD_EXPIRE_YEAR - Credit Card expiration year - mandatory
  • TG_FIRSTNAME - First Name - mandatory, used for Billing Profile
  • TG_LASTNAME - Last Name - mandatory, used for Billing Profile
  • TG_ADDRESS1 - Address - mandatory, used for Billing Profile
  • TG_CITY - City - mandatory, used for Billing Profile
  • TG_ZIP - Zip Code - mandatory, used for Billing Profile
  • TG_COUNTRY - Country - mandatory, used for Billing Profile
  • TG_STATE - State, used for Billing Profile
  • TG_PHONE - Phone Number - mandatory, used for Billing Profile
  • TG_SHIPTO_FIRSTNAME - First Name - mandatory for Shipping Profile
  • TG_SHIPTO_LASTNAME - Last Name - mandatory for Shipping Profile
  • TG_SHIPTO_ADDRESS1 - Address - mandatory for Shipping Profile
  • TG_SHIPTO_CITY - City - mandatory for Shipping Profileg
  • TG_SHIPTO_ZIP - Zip Code - mandatory for Shipping Profile
  • TG_COUNTRY - Country - mandatory for Shipping Profile
  • TG_STATE - State, used for Shipping Profile
  • TG_PHONE - Phone Number - mandatory for Shipping Profile

Content Example


<h1>Automatic Refill Billing &amp; Shipping</h1>

<div class="formHolder">
	<form name="shippingBilingManagement" id="shippingBilingManagement" class="validateMe creditCardManagement" action="|PATH_WEB_GO_SSL|" method="post">

		|HIDE-ONSAVENOW-START|
		<fieldset style="width:890px;">
			<legend>Credit Card Information</legend>  <br />

			<label for="cimName">|START_ERR_FNT_TG_CIM_NAME|Name:*|END_ERR_FNT_TG_CIM_NAME|</label><input id="cimName" name="TG_CIM_NAME" value="|VAL_TG_CIM_NAME|" type="text" class="formField required" maxlength="30" /><br />
			<label>|START_ERR_FNT_TG_CREDITCARD_TYPE|Credit Card Type|END_ERR_FNT_TG_CREDITCARD_TYPE|</label>
				<select name="TG_CREDITCARD_TYPE" class="formSelect required" style="width:140px" |DO_READONLY_DROP|>
					<option value="">Select Type</option>
					<option value="visa" |DRP_TG_CREDITCARD_TYPE/visa|>Visa</option>
					<option value="mastercard" |DRP_TG_CREDITCARD_TYPE/mastercard|>MasterCard</option>
					<option value="discovery" |DRP_TG_CREDITCARD_TYPE/discovery|>Discover</option>
				</select>
			<label for="creditcardName" style="width:auto; padding:14px 10px 0 10px;">|START_ERR_FNT_TG_CREDITCARD_NAME|Name on Credit Card:*|END_ERR_FNT_TG_CREDITCARD_NAME|</label><input id="creditcardName" name="TG_CREDITCARD_NAME" value="|VAL_TG_CREDITCARD_NAME|" type="text" class="formField required" maxlength="30" /><br />
			<label for="number">|START_ERR_FNT_TG_CREDITCARD_NUMBER|Credit Card #:*|END_ERR_FNT_TG_CREDITCARD_NUMBER|</label><input id="number" name="TG_CREDITCARD_NUMBER" value="|VAL_TG_CREDITCARD_NUMBER|" type="text" class="formField required" maxlength="16" style="width:188px;" />
			<label for="cvd" style="width:auto; padding:14px 10px 0 10px;">CVD:</label><input id="cvd" name="TG_CREDITCARD_CVD" value="|VAL_TG_CREDITCARD_CVD|" type="text" class="formField" maxlength="4" style="width:50px" />
			<label style="width:auto; padding:14px 10px 0 10px;">|START_ERR_FNT_TG_CREDITCARD_EXPIRE_YEAR||START_ERR_FNT_TG_CREDITCARD_EXPIRE_MONTH|Expiration Date:*|END_ERR_FNT_TG_CREDITCARD_EXPIRE_MONTH||END_ERR_FNT_TG_CREDITCARD_EXPIRE_YEAR|</label>
				<select name="TG_CREDITCARD_EXPIRE_MONTH" class="formSelect required" style="width:110px; margin-right:3px;" |DO_READONLY_DROP|>
					<option value="01" |DRP_TG_CREDITCARD_EXPIRE_MONTH/01|>January</option>
					<option value="02" |DRP_TG_CREDITCARD_EXPIRE_MONTH/02|>February</option>
					<option value="03" |DRP_TG_CREDITCARD_EXPIRE_MONTH/03|>March</option>
					<option value="04" |DRP_TG_CREDITCARD_EXPIRE_MONTH/04|>April</option>
					<option value="05" |DRP_TG_CREDITCARD_EXPIRE_MONTH/05|>May</option>
					<option value="06" |DRP_TG_CREDITCARD_EXPIRE_MONTH/06|>June</option>
					<option value="07" |DRP_TG_CREDITCARD_EXPIRE_MONTH/07|>Julie</option>
					<option value="08" |DRP_TG_CREDITCARD_EXPIRE_MONTH/08|>August</option>
					<option value="09" |DRP_TG_CREDITCARD_EXPIRE_MONTH/09|>September</option>
					<option value="10" |DRP_TG_CREDITCARD_EXPIRE_MONTH/10|>October</option>
					<option value="11" |DRP_TG_CREDITCARD_EXPIRE_MONTH/11|>November</option>
					<option value="12" |DRP_TG_CREDITCARD_EXPIRE_MONTH/12|>December</option>
				</select>
				<select name="TG_CREDITCARD_EXPIRE_YEAR" class="formSelect required" style="width:70px" |DO_READONLY_DROP|>
					<option value="2011" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2011|>2011</option>
					<option value="2012" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2012|>2012</option>
					<option value="2013" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2013|>2013</option>
					<option value="2014" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2014|>2014</option>
					<option value="2015" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2015|>2015</option>
					<option value="2016" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2016|>2016</option>
					<option value="2017" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2017|>2017</option>
					<option value="2018" |DRP_TG_CREDITCARD_EXPIRE_YEAR/2018|>2018</option>
				</select><br />
		</fieldset><br /><br />

		<fieldset>
			<legend>Billing Information</legend>  <br />

			<label for="firstName">|START_ERR_FNT_TG_FIRSTNAME|First Name*|END_ERR_FNT_TG_FIRSTNAME|</label><input id="firstName" name="TG_FIRSTNAME" value="|VAL_TG_FIRSTNAME|" type="text" |DO_READONLY_INPUT| class="formField replicate required" />  <br />
			<label for="lastName">|START_ERR_FNT_TG_LASTNAME|Last Name*|END_ERR_FNT_TG_LASTNAME|</label><input id="lastName" name="TG_LASTNAME" value="|VAL_TG_LASTNAME|" type="text" |DO_READONLY_INPUT| class="formField replicate required" /><br />
			<label for="address1">|START_ERR_FNT_TG_ADDRESS1|Address 1*|END_ERR_FNT_TG_ADDRESS1|</label><input id="address1" name="TG_ADDRESS1" value="|VAL_TG_ADDRESS1|" type="text" |DO_READONLY_INPUT| class="formField replicate required" /><br />
			<label for="city">|START_ERR_FNT_TG_CITY|City*|END_ERR_FNT_TG_CITY|</label><input id="city" name="TG_CITY" value="|VAL_TG_CITY|" type="text" |DO_READONLY_INPUT| class="formField replicate required" /> <br />
			<label for="zip" >|START_ERR_FNT_TG_ZIP|Zip*|END_ERR_FNT_TG_ZIP|</label><input id="zip" name="TG_ZIP" value="|VAL_TG_ZIP|" type="text" |DO_READONLY_INPUT| class="formField replicate required" /><br />
			<label for="country">|START_ERR_FNT_TG_COUNTRY|Country:*|END_ERR_FNT_TG_COUNTRY|</label>
				<select id="country" name="TG_COUNTRY" |DO_READONLY_DROP| class="formSelect replicate required">|CIM_BILLTO_COUNTRY|</select><br />
			<label for="state">|START_ERR_FNT_TG_STATE|State:*|END_ERR_FNT_TG_STATE|</label>
				<div id="state1" style="display: block">
					<select id="state_temp" name="TG_STATE_TEMP" |DO_READONLY_DROP| class="formSelect replicate required">|CIM_BILLTO_STATES_US|</select>
				</div>
				<div id="state2" style="display: none">
					<input type="text" id="state" name="TG_STATE" value="|VAL_TG_STATE|" class="formField replicate required" /> <br />
				</div><br />
			<label for="phone">|START_ERR_FNT_TG_PHONE|Phone*|END_ERR_FNT_TG_PHONE|</label><input id="phone" name="TG_PHONE" value="|VAL_TG_PHONE|" type="text" |DO_READONLY_INPUT| class="formField replicate required" /><br />

			<div class="saveTime">
				<input type="checkbox" name="TG_SAME_INFO" id="TG_SAME_INFO" |CHK_TG_SAME_INFO| value="OFF" />
				<span style="color:#ff0000; font-weight:bold; font-size:1.1em;">SAVE TIME!</span> Check this box if your shipping address will be the same as your billing address.
			</div>

		</fieldset>

		<fieldset>
			<legend>Shipping Information</legend>  <br />

			<label for="shipFirstName">|START_ERR_FNT_TG_SHIPTO_FIRSTNAME|First Name*|END_ERR_FNT_TG_SHIPTO_FIRSTNAME|</label><input id="shipFirstName" name="TG_SHIPTO_FIRSTNAME" value="|VAL_TG_SHIPTO_FIRSTNAME|" type="text" |DO_READONLY_INPUT| class="formField reset required" />  <br />
			<label for="shipLastName">|START_ERR_FNT_TG_SHIPTO_LASTNAME|Last Name*|END_ERR_FNT_TG_SHIPTO_LASTNAME|</label><input id="shipLastName" name="TG_SHIPTO_LASTNAME" value="|VAL_TG_SHIPTO_LASTNAME|" type="text" |DO_READONLY_INPUT| class="formField reset required" /><br />
			<label for="shipAddress1">|START_ERR_FNT_TG_SHIPTO_ADDRESS1|Address 1*|END_ERR_FNT_TG_SHIPTO_ADDRESS1|</label><input id="shipAddress1" name="TG_SHIPTO_ADDRESS1" value="|VAL_TG_SHIPTO_ADDRESS1|" type="text" |DO_READONLY_INPUT| class="formField reset required" /><br />
			<label for="shipCity">|START_ERR_FNT_TG_SHIPTO_CITY|City*|END_ERR_FNT_TG_SHIPTO_CITY|</label><input id="shipCity" name="TG_SHIPTO_CITY" value="|VAL_TG_SHIPTO_CITY|" type="text" |DO_READONLY_INPUT| class="formField reset required" /> <br />
			<label for="shipZip" >|START_ERR_FNT_TG_SHIPTO_ZIP|Zip*|END_ERR_FNT_TG_SHIPTO_ZIP|</label><input id="shipZip" name="TG_SHIPTO_ZIP" value="|VAL_TG_SHIPTO_ZIP|" type="text" |DO_READONLY_INPUT| class="formField reset required" /><br />
			<label for="country2">|START_ERR_FNT_TG_COUNTRY|Country:*|END_ERR_FNT_TG_COUNTRY|</label>
				<select id="country2" name="TG_SHIPTO_COUNTRY" |DO_READONLY_DROP| class="formSelect reset required">|CIM_SHIPTO_COUNTRY|</select><br />
			<label for="stateShipping">|START_ERR_FNT_TG_SHIPTO_STATE|State:*|END_ERR_FNT_TG_SHIPTO_STATE|</label>
				<div id="stateShipping1" style="display: block">
					<select id="stateShipping_temp" name="TG_SHIPTO_STATE_TEMP" |DO_READONLY_DROP| class="formSelect reset required">|CIM_SHIPTO_STATES_US|</select>
				</div>
				<div id="stateShipping2" style="display: none">
					<input type="text" id="stateShipping" name="TG_SHIPTO_STATE" value="|VAL_TG_SHIPTO_STATE|" class="formField reset required" /> <br />
				</div><br />
			<label for="shipPhone">|START_ERR_FNT_TG_SHIPTO_PHONE|Phone*|END_ERR_FNT_TG_SHIPTO_PHONE|</label><input id="shipPhone" name="TG_SHIPTO_PHONE" value="|VAL_TG_SHIPTO_PHONE|" type="text" |DO_READONLY_INPUT| class="formField reset required" /><br />
		</fieldset><br /><br />
		|HIDE-ONSAVENOW-END|

		|SHOW-ONSAVENOW-START|
		<fieldset style="width:890px;">
			<legend>Credit Card Information</legend>  <br />

			<label for="cimName">Name:</label><input id="cimName" name="TG_CIM_NAME" value="|VAL_TG_CIM_NAME|" type="hidden" /><span class="formFieldSpan">|VAL_TG_CIM_NAME|</span><br />
			<label>Credit Card Type</label><input id="creditCard" name="TG_CREDITCARD_TYPE" value="|VAL_TG_CREDITCARD_TYPE|" type="hidden" /><span class="formFieldSpan"  style="width:140px">|VAL_TG_CREDITCARD_TYPE|</span>
			<label for="creditcardName" style="width:auto; padding:14px 10px 0 10px;">Name on Credit Card:</label><input id="creditcardName" name="TG_CREDITCARD_NAME" value="|VAL_TG_CREDITCARD_NAME|" type="hidden" /><span class="formFieldSpan">|VAL_TG_CREDITCARD_NAME|</span> <br />
			<label for="ccNumber">Credit Card #:</label><input id="ccNumber" name="TG_CREDITCARD_NUMBER" value="|VAL_TG_CREDITCARD_NUMBER|" type="hidden" /><span class="formFieldSpan" style="width:188px;">|VAL_TG_CREDITCARD_NUMBER|</span>
			<label for="cvd" style="width:auto; padding:14px 10px 0 10px;">CVD:</label><input id="cvd" name="TG_CREDITCARD_CVD" value="|VAL_TG_CREDITCARD_CVD|" type="hidden" /><span class="formFieldSpan" style="width:50px">|VAL_TG_CREDITCARD_CVD|</span>
			<label style="width:auto; padding:14px 10px 0 10px;">Expiration Date:</label>
				<input id="expMonth" name="TG_CREDITCARD_EXPIRE_MONTH" value="|VAL_TG_CREDITCARD_EXPIRE_MONTH|" type="hidden" />
				<input id="expYear" name="TG_CREDITCARD_EXPIRE_YEAR" value="|VAL_TG_CREDITCARD_EXPIRE_YEAR|" type="hidden" />
				<span class="formFieldSpan" style="width:40px;">|VAL_TG_CREDITCARD_EXPIRE_MONTH|</span>
				<span class="formFieldSpan" style="width:70px;">|VAL_TG_CREDITCARD_EXPIRE_YEAR|</span><br />
		</fieldset><br /><br />

		<fieldset>
			<legend>Billing Information</legend>  <br />

			<label for="firstName">First Name:</label><input id="firstName" name="TG_FIRSTNAME" value="|VAL_TG_FIRSTNAME|" type="hidden" /><span class="formFieldSpan">|VAL_TG_FIRSTNAME|</span> <br />
			<label for="lastName">Last Name:</label><input id="lastName" name="TG_LASTNAME" value="|VAL_TG_LASTNAME|" type="hidden" /><span class="formFieldSpan">|VAL_TG_LASTNAME|</span><br />
			<label for="address1">Address 1:</label><input id="address1" name="TG_ADDRESS1" value="|VAL_TG_ADDRESS1|" type="hidden" /><span class="formFieldSpan">|VAL_TG_ADDRESS1|</span><br />  <br />
			<label for="city">City:</label><input id="city" name="TG_CITY" value="|VAL_TG_CITY|" type="hidden" /><span class="formFieldSpan">|VAL_TG_CITY|</span> <br />
			<label for="zip">Zip:</label><input id="zip" name="TG_ZIP" value="|VAL_TG_ZIP|" type="hidden" /><span class="formFieldSpan">|VAL_TG_ZIP|</span><br />
			<label for="country">Country:</label><input id="country" name="TG_COUNTRY" value="|VAL_TG_COUNTRY|" type="hidden" /><span class="formFieldSpan">|VAL_TG_COUNTRY|</span><br />
			<label for="state">State:</label><input id="state" name="TG_STATE" value="|VAL_TG_STATE|" type="hidden" /><span class="formFieldSpan">|VAL_TG_STATE|</span>   <br />
			<label for="phone">Phone:</label><input id="phone" name="TG_PHONE" value="|VAL_TG_PHONE|" type="hidden" /><span class="formFieldSpan">|VAL_TG_PHONE|</span><br />
		</fieldset>

		<fieldset>
			<legend>Shipping Information</legend>  <br />

			<label for="shipFirstName">First Name:</label><input id="shipFirstName" name="TG_SHIPTO_FIRSTNAME" value="|VAL_TG_SHIPTO_FIRSTNAME|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_FIRSTNAME|</span> <br />
			<label for="shipLastName">Last Name:</label><input id="shipLastName" name="TG_SHIPTO_LASTNAME" value="|VAL_TG_SHIPTO_LASTNAME|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_LASTNAME|</span><br />
			<label for="shipAddress1">Address 1:</label><input id="shipAddress1" name="TG_SHIPTO_ADDRESS1" value="|VAL_TG_SHIPTO_ADDRESS1|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_ADDRESS1|</span><br />  <br />
			<label for="shipCity">City:</label><input id="shipCity" name="TG_SHIPTO_CITY" value="|VAL_TG_SHIPTO_CITY|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_CITY|</span> <br />
			<label for="shipZip">Zip:</label><input id="shipZip" name="TG_SHIPTO_ZIP" value="|VAL_TG_SHIPTO_ZIP|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_ZIP|</span><br />
			<label for="shipCountry">Country:</label><input id="shipCountry" name="TG_SHIPTO_COUNTRY" value="|VAL_TG_SHIPTO_COUNTRY|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_COUNTRY|</span><br />
			<label for="stateShipping">State:</label><input id="shpState" name="TG_SHIPTO_STATE" value="|VAL_TG_SHIPTO_STATE|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_STATE|</span>   <br />
			<label for="shipPhone">Phone:</label><input id="shipPhone" name="TG_SHIPTO_PHONE" value="|VAL_TG_SHIPTO_PHONE|" type="hidden" /><span class="formFieldSpan">|VAL_TG_SHIPTO_PHONE|</span><br />
		</fieldset><br /><br />
		|SHOW-ONSAVENOW-END|

		<input type="hidden" name="SERVICE" value="|SERVICE_CODE|" />
		<input type="hidden" name="DO_SAVENOW" id="DO_SAVENOW" value="|DO_SAVENOW|" />
		<input type="hidden" name="MANDATORY_FIELD_NAMES" value="TG_CIM_NAME,TG_CREDITCARD_TYPE,TG_CREDITCARD_NAME,TG_CREDITCARD_NUMBER,TG_CREDITCARD_EXPIRE_MONTH,TG_CREDITCARD_EXPIRE_YEAR,TG_ADDRESS1,TG_CITY,TG_ZIP,TG_COUNTRY,TG_STATE,TG_PHONE,TG_SHIPTO_ADDRESS1,TG_SHIPTO_CITY,TG_SHIPTO_ZIP,TG_SHIPTO_COUNTRY,TG_SHIPTO_STATE,TG_SHIPTO_PHONE" />
		<input type="hidden" name="MANDATORY_FIELD_CODES" value="ERR_REQ_CIM_NAME,ERR_REQ_CREDITCARD_TYPE,ERR_REQ_CREDITCARD_NAME,ERR_REQ_CREDITCARD_NUMBER,ERR_REQ_CREDITCARD_EXPIRE_MONTH,ERR_REQ_CREDITCARD_EXPIRE_YEAR,ERR_REQ_ADDRESS1,ERR_REQ_CITY,ERR_REQ_ZIP,ERR_REQ_COUNTRY,ERR_REQ_STATE,ERR_REQ_PHONE,ERR_REQ_SHIPTO_ADDRESS1,ERR_REQ_SHIPTO_CITY,ERR_REQ_SHIPTO_ZIP,ERR_REQ_SHIPTO_COUNTRY,ERR_REQ_SHIPTO_STATE,ERR_REQ_SHIPTO_PHONE" />
		<input type="hidden" name="TG_KE_USER" value="|USER_USERNAME|" />
		<input type="hidden" name="TG_CIM_USER" id="TG_CIM_USER" value="|USER_USERNAME|" />
		<input type="hidden" name="TG_CIM_MASKED" value="|VAL_TG_CREDITCARD_CVD|" />
	 	<input type="hidden" name="FORM_SECURITY_ID" value="|FORM_SECURITY_ID|" />

		|HIDE-ONSAVENOW-START|
		<div class="formButtons"><input type="image" src="|PATH_IMAGES|general/btSubmit.gif" /></div>
		|HIDE-ONSAVENOW-END|

		|SHOW-ONSAVENOW-START|
		<div class="formButtons"><input type="image" src="|PATH_IMAGES|general/btSubmit.gif" onclick="createBilling(); return false;" /> <input type="image" src="|PATH_IMAGES|general/btCancel.gif" onclick="$('#DO_SAVENOW').val('-1');" /></div>
		|SHOW-ONSAVENOW-END|

	 </form>
</div>

back

Add a comment






Comments


dapoxetine 60 mg online indiatadalafil cheapestcialis gel reviewcialis compared to levitracost viagra cialisbuy cialis online 10mgcheap cialis online without prescriptionjlo8aewxMoLoBBWzGvbMoLoBBWzGvbjvXNxTjAhoyVIjvXNxTjAhoyVILNjrzdnZGouLNjrzdnZGou