API Samples and Demo

Setup Recurring XML

XML Request

                            
    <transaction-request>
        <version>3.1.1.1</version>
        <verification>
            <merchantId>your merchant id</merchantId>
            <merchantKey>your key</merchantKey>
        </verification>
        <order>
            <recurringPayment>
                <referenceNum>846392232</referenceNum>
                <ipAddress>123.123.123.123</ipAddress>
                <invoiceNumber>123456</invoiceNumber>
                <billing>
                    <name>Tom Customer</name>
                    <address>123 Main Street</address>
                    <address2>Apt 36</address2>
                    <city>Moorpark</city>
                    <state>CA</state>
                    <postalcode>91307</postalcode>
                    <country>US</country>
                    <phone>818-123-1234</phone>
                    <email>customer@example.com</email>
                </billing>
                <shipping>
                    <name>Tom Customer</name>
                    <address>123 Main Street</address>
                    <address2>Apt 36</address2>
                    <city>Moorpark</city>
                    <state>CA</state>
                    <postalcode>91307</postalcode>
                    <country>US</country>
                    <phone>818-123-1234</phone>
                    <email>customer@example.com</email>
                </shipping>
                <transactionDetail>
                    <payType>
                        <creditCard>
                            <number>4111111111111111</number>
                            <expMonth>12</expMonth>
                            <expYear>2028</expYear>
                            <cvvInd></cvvInd>
                            <cvvNumber>123</cvvNumber>
                            <track1Data></track1Data>
                            <track2Data></track2Data>
                            <eCommInd>eci</eCommInd>
                            <signatureImage></signatureImage>
                        </creditCard>
                    </payType>
                </transactionDetail>
                <payment>
                    <chargeTotal>32.00</chargeTotal>
                    <salesTaxTotal>1.23</salesTaxTotal>
                    <shippingTotal>3.00</shippingTotal>
                    <currencyCode>USD</currencyCode>
                </payment>
                <!-- fields to specify parameters of the scheduled payment -->
                <recurring>
                    <action>new</action>
                    <startDate>2016-11-30</startDate>
                    <period>monthly</period>
                    <frequency>1</frequency>
                    <installments>24</installments>
                    <failureThreshold>3</failureThreshold>
                </recurring>
            </recurringPayment>
        </order>
    </transaction-request>
                            
                        

XML Response

                            
    <transaction-response>
        <authCode/>
        <orderID>C0A8C866:0119C7DF2702:E1D7:00E3FDA2</orderID>
        <referenceNum/>
        <transactionID/>
        <transactionTimestamp>1210664602</transactionTimestamp>
        <responseCode>0</responseCode>
        <responseMessage>APPROVED</responseMessage>
        <avsResponseCode/>
        <cvvResponseCode/>
        <processorCode/>
        <processorMessage/>
        <errorMessage/>
    </transaction-response>