developer:soap-1.1:methods:runquickcredit

runQuickCredit

Run a credit based on the credit card details of a previous transaction.

Description

This method allows you to run a new transaction using stored customer data. Simply pass the reference number (RefNum) of a previous transaction and the gateway will automatically transfer the credit card information for use in the new transaction. Some credit card information, such as the card code and magnetic strip cannot be stored. This may cause the new transaction to come in at a higher rate than the original.

See also runTransaction, runSale, voidTransaction, runCredit, runAuthOnly

Syntax

TransactionResponse runQuickCredit ( ueSecurityToken Token, integer RefNum, TransactionDetail Details )

Arguments

Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.
integer RefNum Unique transaction reference number assigned by the gateway.
TransactionDetail Details Request transaction details, including transaction amount, invoice number, customer ID, PO number, and other transaction specific data.

Return Value

TransactionResponse Returns a TransactionResponse object containing the results of the transaction and all relevant data.

Examples

.NET VB

Dim refnum As Integer
        Dim details As usaepay.TransactionDetail = New usaepay.TransactionDetail
 
        refnum = "47084854"
        details.Amount = "1.00"
        details.AmountSpecified = True
        details.Description = "Example QuickCredit"
        details.Invoice = "123456"
 
        Dim response As usaepay.TransactionResponse
 
        response = client.runQuickCredit(token, refnum, details)
 
        If response.ResultCode = "A" Then
            MsgBox("Transaction Approved, Reference Number: " & response.RefNum)
        ElseIf response.ResultCode = "D" Then
            MsgBox("Transaction Declined, Reason: " & response.Error)
        Else
            MsgBox("Transaction Error, Reason: " & response.Error)
        End If

.NET C#

usaepay.TransactionDetail details = new usaepay.TransactionDetail();
 
            string refnum;
 
            refnum = "46973415";
 
            details.Amount = 34.50;
            details.AmountSpecified = true;
            details.Description = "Example QuickCredit";
            details.Invoice = "123456";
 
            usaepay.TransactionResponse response = new usaepay.TransactionResponse();
 
            try
            {
                response = client.runQuickCredit(token, refnum, details);
 
                if (response.ResultCode == "A")
                {
                    MessageBox.Show(string.Concat("Transaction Approved, RefNum: ",
                    response.RefNum));
                }
                else
                {
                    MessageBox.Show(string.Concat("Transaction Failed: ",
                    response.Error));
                }
            }
            catch (Exception err)
            {
                MessageBox.Show(err.Message);
 
            }

Change History

Version Change
1.0 Method added in soap v1.0
developer/soap-1.1/methods/runquickcredit.txt · Last modified: 2010/10/21 11:30 by irina

Page Tools