Convert existing transaction to stored customer.


This method copies the credit card/check data, card holder name and address information from an existing transaction and uses it to create a new customer record to be stored in the Customer Database. By default, the customer will be created with recurring billing disabled.

The method returns the new CustNum (customer number). Optional customer fields can be created using the UpdateData parameter. See the quickUpdateCustomer method for details on what fields may be set.

Only information entered in the original transaction will be saved. To input additional data, use the updateCustomer or quickUpdateCustomer methods. updateCustomer will replace all existing customer data, while quickUpdateCustomer allows you to update selected fields only.

Possible fields are:

  • FirstName
  • LastName
  • CustomerID
  • Company
  • Address
  • Address2
  • City
  • State
  • Zip
  • Country
  • Phone
  • Fax
  • Email
  • URL
  • ReceiptNote
  • SendReceipt
  • Notes
  • Description
  • OrderID
  • Enabled
  • Schedule
  • Next
  • NumLeft
  • Amount
  • CustomData
  • Source
  • User
  • Card Number
  • Card Expiration
  • Account Number
  • Routing Number


string convertTranToCust ( ueSecurityToken Token, integer RefNum, FieldValue UpdateData )


Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.
integer RefNum Transaction Reference number assigned by the gateway.
FieldValue UpdateData Recurring

Return Value

string Returns the CustNum of the new customer.


Dim refnum As String
        refnum = "46978031"
        Dim update(0 To 1) As usaepay.FieldValue
        For i As Integer = 0 To 1
            update(i) = New usaepay.FieldValue
        update(0).Field = "Schedule"
        update(0).Value = "weekly"
        update(1).Field = "NumLeft"
        update(1).Value = "7"
        Dim response As String
        response = client.convertTranToCust(token, refnum, update)


string refnum = "46993415";
            usaepay.FieldValue[] update = new usaepay.FieldValue[2];
            for (int i = 0; i < 2; i++) {
                update[i] = new usaepay.FieldValue();
            update[0].Field = "Schedule"; update[0].Value = "weekly";
            update[1].Field = "NumLeft"; update[1].Value = "7";
            string response;
                response = client.convertTranToCust(token, refnum, update);
                MessageBox.Show(string.Concat("Customer Number: ",
            catch (Exception err)

Change History

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

Page Tools