Scenario 2: 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"> <customerAccount refId="#1" code="php.ca-2" merchantAccountCode="2001" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Columbus" state="NY" zipCode="31909" /> <paymentOption refId="#1" code="php.po-2" merchantAccountCode="2001" customerAccount="#1" isActive="1" type="C" number="1000121279381" accessory="610000227" holderName="John Smith" street1="233 12th Street" city="Columbus" state="CA" zipCode="31909" /> <revenueTransaction refId="#1" code="php.rt-2" merchantAccountCode="2001" customerAccount="#1" accountActivityType="RI" amount="5000" balance="5000" itemCode="Membership" /> <assetTransaction refId="#1" code="php.at-2" merchantAccountCode="2001" customerAccount="#1" accountActivityType="AP" amount="5000" balance="5000" transactionType="V" accountNumber="4111111111111111" accessory="1209" captureInfo="1"> <captureInfo refId="1" merchantAccountCode="2001" accountNumber="4111111111111111" accessory="1209" transactionType="V" holderName="John Smith" street="233 12th Street" city="Columbus" state="CA" zipCode="31909" phone="2129856472" email="test@yahoo.com" requestDate="20080604" cvv2="999" /> </assetTransaction> <paymentPlan refId="#1" code="php.pp-2" merchantAccountCode="2001" customerAccount="#1" type="P" amount="1000" billingCycleCode="W01" itemCode="Membership" paymentOption="#1" /> </request>
RESPONSE ( Download)
<?xml version="1.0" encoding="UTF-8"?> <response> <customerAccount id="4" refId="#1" code="php.ca-2" merchantAccountCode="2001" createDate="20080604" firstName="John" lastName="Smith" type="M" isActive="1" homePhone="2129856472" email="test@yahoo.com" street1="233 12th Street" city="Columbus" state="NY" zipCode="31909" balance="0" lastUpdateDate="20080604" /> <paymentOption id="4" refId="#1" code="php.po-2" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" isActive="1" type="C" number="1000121279381" accessory="610000227" holderName="John Smith" street1="233 12th Street" city="Columbus" state="CA" zipCode="31909" maskedNumber="1********9381" maskedAccessory="6****0227" /> <revenueTransaction id="4" refId="#1" code="php.rt-2" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" accountActivityType="RI" amount="5000" balance="5000" dueDate="20080604" itemCode="Membership" isComplimentary="0" /> <assetTransaction id="3" refId="#1" code="php.at-2" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" accountActivityType="AP" amount="-5000" balance="-5000" dueDate="20080604" maskedAccountNumber="4***********1111" maskedAccessory="1209" transactionType="V" accountNumber="4111111111111111" accessory="1209" captureInfo="7001591"> <captureInfo id="1" refId="7001591" code="php.at-2" createDate="20080604" merchantAccountCode="2001" accountNumber="4111111111111111" accessory="1209" transactionType="V" holderName="John Smith" street="233 12th Street" city="Columbus" state="CA" zipCode="31909" phone="2129856472" email="test@yahoo.com" requestDate="20080604" responseDate="20080604" returnType="A01" approvalCode="TAS294" referenceNumber="2" /> </assetTransaction> <paymentPlan id="2" refId="#1" code="php.pp-2" merchantAccountCode="2001" customerAccount="#1" createDate="20080604" type="P" status="U" amount="1000" length="15" value="15000" billingCycleCode="W01" firstBillingDate="20080609" nextBillingDate="20080609" lastUpdateDate="20080604" itemCode="Membership" paymentOption="#1"> <charge id="13" refId="350644" code="13" merchantAccountCode="2001" createDate="20080604" type="P" index="0" isPrepaid="0" /> <charge id="14" refId="21253625" code="14" merchantAccountCode="2001" createDate="20080604" type="P" index="1" isPrepaid="0" /> <charge id="15" refId="22755830" code="15" merchantAccountCode="2001" createDate="20080604" type="P" index="2" isPrepaid="0" /> <charge id="16" refId="3819839" code="16" merchantAccountCode="2001" createDate="20080604" type="P" index="3" isPrepaid="0" /> <charge id="17" refId="10421180" code="17" merchantAccountCode="2001" createDate="20080604" type="P" index="4" isPrepaid="0" /> <charge id="18" refId="28205914" code="18" merchantAccountCode="2001" createDate="20080604" type="P" index="5" isPrepaid="0" /> <charge id="19" refId="33343570" code="19" merchantAccountCode="2001" createDate="20080604" type="P" index="6" isPrepaid="0" /> <charge id="20" refId="12819246" code="20" merchantAccountCode="2001" createDate="20080604" type="P" index="7" isPrepaid="0" /> <charge id="21" refId="73143" code="21" merchantAccountCode="2001" createDate="20080604" type="P" index="8" isPrepaid="0" /> <charge id="22" refId="21361677" code="22" merchantAccountCode="2001" createDate="20080604" type="P" index="9" isPrepaid="0" /> <charge id="23" refId="26844366" code="23" merchantAccountCode="2001" createDate="20080604" type="P" index="10" isPrepaid="0" /> <charge id="24" refId="367162" code="24" merchantAccountCode="2001" createDate="20080604" type="P" index="11" isPrepaid="0" /> <charge id="25" refId="30442498" code="25" merchantAccountCode="2001" createDate="20080604" type="P" index="12" isPrepaid="0" /> <charge id="26" refId="9089715" code="26" merchantAccountCode="2001" createDate="20080604" type="P" index="13" isPrepaid="0" /> <charge id="27" refId="31069288" code="27" merchantAccountCode="2001" createDate="20080604" type="P" index="14" isPrepaid="0" /> </paymentPlan> </response>
