XMLRPC

[SECPay services]
-> [XMLRPC index]
   -> Repeat Transactions

Repeat Transactions

Method Name: SECVPN.repeatCardFullAddr

PARAMETER EXAMPLE DEFINITION
mid secpay This is your secpay username (usually six letters and two numbers).
vpn_pswd secpay Your VPN password can be set from within the Merchant Extranet: https://www.secpay.com/secnet/logon.html. (Click on "Account" then "Remote Passwords" and select VPN from the drop down list).
trans_id TRAN0001 A unique transaction identifier created by yourself. This should be the trans_id of the original transaction that has card details associated with it that you would like to use for this repeat transaction.
Warning: If you reference a non-unique trans_id, it is the card details associated with the most recent transaction that will be used for this repeat transaction.
amount 50.00 The amount to process for this new transaction. This should contain no currency symbols or formatting (for example do not send an amount with a comma in).
remote_pswd secpay Your Remote password can be set from within the Merchant Extranet: https://www.secpay.com/secnet/logon.html. (Click on "Account" then "Remote Passwords" and select Remote from the drop down list).
new_trans_id TRAN0001_REPEATED A unique transaction identifier created by yourself. This will be the trans_id of the new transaction you are creating by performing this repeat.
exp_date 0106 If the expiry date associated with the original transaction which you are referencing in order to create this repeat transaction have expired, you may provide a new expiry date using this parameter.
order
Used to submit order details relevant to this transaction. Please see the User Manual for further details: http://www.secpay.com/sc_api.html#order.
shipping
Used to submit shipping address details relevant to this transaction. Please see the User Manual for further details: http://www.secpay.com/sc_api.html#shipping.
billing
Used to submit billing address details relevant to this transaction. Please see the User Manual for further details: http://www.secpay.com/sc_api.html#billing.
options
Used to submit optional parameters which are used to alter the behaviour of this transaction. Please see the User Manual for further details: http://www.secpay.com/sc_api.html#other.

Example XMLRPC Request...

<?xml version="1.0"?>
    <methodCall>
    <methodName>SECVPN.repeatCardFullAddr</methodName>
    <params>
        <param>
            <value><string>secpay</string></value>
        </param>
        <param>
            <value><string>secpay</string></value>
        </param>
        <param>
            <value><string>TRAN0001</string></value>
        </param>
        <param>
            <value><string>50.00</string></value>
        </param>
        <param>
            <value><string>secpay</string></value>
        </param>
        <param>
            <value><string>TRAN0001_REPEATED</string></value>
        </param>
        <param>
            <value><string>0106</string></value>
        </param>
        <param>       
            <value>
                <string>
                    prod=funny_book,item_amount=18.50x1;
                    prod=sad_book,item_amount=16.50x2
                </string>
            </value>
        </param>
        <param>
            <value><string></string></value>
        </param>
        <param>
            <value><string></string></value>
        </param>
        <param>
            <value><string>test_status=true,dups=false</string></value>
        </param>
    </params>
    </params>
</methodCall>
                           

Example XMLRPC Response...

<?xml version="1.0" encoding="ISO-8859-1"?>
    <methodResponse>
    <params>
        <param>
            <value>
                ?valid=true&trans_id=TRAN0001&code=A&auth_code=9999&
                message=TEST AUTH&test_status=true
            </value>
        </param>
    </params>
</methodResponse>
                           

(c)Copyright 2005 SECPay Ltd., All Rights Reserved.