Scenario 1: XML
From Intrannuity
REQUEST (Download )
<?xml version="1.0" encoding="UTF-8"?> <request version="1.1" merchantAccountCode="2000" password="welcome" payment-option.verification-amount="99" clientIpAddress="145.21.0.1" clientEmailDomain="hotmail.com" clientEmailEncoded="8d89c3087cc6cb98793ab7c0f5658c56" clientUserNameEncoded="435e0648d634175c46bd40ac366545a8" clientPasswordEncoded="5f4dcc3b5aa765d61d8327deb882cf99"> <customerAccount refId="#1" code="php.ca-1" merchantAccountCode="2001" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Honolulu" state="CA" zipCode="31904" /> <paymentOption refId="#1" code="php.po-1" merchantAccountCode="2001" customerAccount="#1" isActive="1" number="4111111111111111" accessory="1209" holderName="John Smith" street1="233 12th Street" city="Honolulu" state="CA" zipCode="31904" /> <revenueTransaction refId="#1" code="php.rt-1" merchantAccountCode="2001" customerAccount="#1" accountActivityType="RI" amount="10000" balance="10000" itemCode="Membership" /> <assetTransaction refId="#1" code="php.at-1" merchantAccountCode="2001" customerAccount="#1" accountActivityType="AP" amount="10000" balance="10000" transactionType="K" /> <paymentPlan refId="#1" code="php.pp-1" merchantAccountCode="2001" customerAccount="#1" type="F" amount="5000" length="12" value="60000" billingCycleCode="M03" itemCode="Membership"> <charge refId="13" merchantAccountCode="2001" createDate="20080604" type="F" index="0" isPrepaid="0" /> <charge refId="12" merchantAccountCode="2001" createDate="20080604" type="F" index="1" isPrepaid="0" /> <charge refId="11" merchantAccountCode="2001" createDate="20080604" type="F" index="2" isPrepaid="0" /> <charge refId="10" merchantAccountCode="2001" createDate="20080604" type="F" index="3" isPrepaid="0" /> <charge refId="9" merchantAccountCode="2001" createDate="20080604" type="F" index="4" isPrepaid="0" /> <charge refId="8" merchantAccountCode="2001" createDate="20080604" type="F" index="5" isPrepaid="0" /> <charge refId="7" merchantAccountCode="2001" createDate="20080604" type="F" index="6" isPrepaid="0" /> <charge refId="6" merchantAccountCode="2001" createDate="20080604" type="F" index="7" isPrepaid="0" /> <charge refId="5" merchantAccountCode="2001" createDate="20080604" type="F" index="8" isPrepaid="0" /> <charge refId="4" merchantAccountCode="2001" createDate="20080604" type="F" index="9" isPrepaid="0" /> <charge refId="3" merchantAccountCode="2001" createDate="20080604" type="F" index="10" isPrepaid="0" /> <charge refId="2" merchantAccountCode="2001" createDate="20080604" type="F" index="11" isPrepaid="0" /> </paymentPlan> </request>
RESPONSE ( Download)
<?xml version="1.0" encoding="UTF-8"?> <response> <customerAccount id="3" refId="#1" code="php.ca-1" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Honolulu" state="CA" zipCode="31904" balance="0" lastUpdateDate="20080604" /> <paymentOption id="3" refId="#1" code="php.po-1" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" isActive="1" type="V" number="4111111111111111" accessory="1209" holderName="John Smith" street1="233 12th Street" city="Honolulu" state="CA" zipCode="31904" maskedNumber="4***********1111" maskedAccessory="1209" /> <revenueTransaction id="2" refId="#1" code="php.rt-1" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" accountActivityType="RI" amount="10000" balance="10000" dueDate="20080604" itemCode="Membership" isComplimentary="0" /> <assetTransaction id="1" refId="1" code="php.at-1" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" accountActivityType="AP" amount="-10000" balance="-10000" dueDate="20080604" transactionType="K" /> <paymentPlan id="1" refId="1" code="php.pp-1" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" type="F" status="U" amount="5000" length="12" value="60000" billingCycleCode="M03" firstBillingDate="20080703" nextBillingDate="20080703" lastUpdateDate="20080604" itemCode="Membership"> <charge id="1" refId="5864867" code="1" merchantAccountCode="2001" createDate="20080604" type="F" index="0" isPrepaid="0" /> <charge id="2" refId="21455556" code="2" merchantAccountCode="2001" createDate="20080604" type="F" index="1" isPrepaid="0" /> <charge id="3" refId="27620132" code="3" merchantAccountCode="2001" createDate="20080604" type="F" index="2" isPrepaid="0" /> <charge id="4" refId="19551441" code="4" merchantAccountCode="2001" createDate="20080604" type="F" index="3" isPrepaid="0" /> <charge id="5" refId="2528806" code="5" merchantAccountCode="2001" createDate="20080604" type="F" index="4" isPrepaid="0" /> <charge id="6" refId="21742579" code="6" merchantAccountCode="2001" createDate="20080604" type="F" index="5" isPrepaid="0" /> <charge id="7" refId="19767245" code="7" merchantAccountCode="2001" createDate="20080604" type="F" index="6" isPrepaid="0" /> <charge id="8" refId="5668768" code="8" merchantAccountCode="2001" createDate="20080604" type="F" index="7" isPrepaid="0" /> <charge id="9" refId="13954261" code="9" merchantAccountCode="2001" createDate="20080604" type="F" index="8" isPrepaid="0" /> <charge id="10" refId="17340538" code="10" merchantAccountCode="2001" createDate="20080604" type="F" index="9" isPrepaid="0" /> <charge id="11" refId="22191148" code="11" merchantAccountCode="2001" createDate="20080604" type="F" index="10" isPrepaid="0" /> <charge id="12" refId="9124484" code="12" merchantAccountCode="2001" createDate="20080604" type="F" index="11" isPrepaid="0" /> </paymentPlan> </response>
