EBizCharge Connect

EBizCharge Connect Developer Hub

Welcome to the EBizCharge Connect developer hub. You'll find comprehensive guides and documentation to help you start working with eBizCharge Connect as quickly as possible, as well as support if you get stuck. Let's jump right in!

Guides    

runCustomerTransaction

Run a transaction using payment data stored in the customer database.

Description

Processes a new transaction using the payment details stored for the customer. This is a one-time charge and does not use or affect the recurring billing values (such as amount and description) that have been stored for the customer. The transaction result will be tied to the customer and will be visible in the customer's billing history.

Syntax

TransactionResponse runCustomerTransaction ( SecurityToken securityToken, string custNum, string paymentMethodID, CustomerTransactionRequest tran)

Arguments

Type
Name
Description

securityToken

EBizCharge Connect security token.

string

custNum

Customer reference number (assigned by the gateway).

string

paymentMethodID

ID of payment method to use for transaction. Send 0 to use default method.

tran

Transaction amount, invoice number, etc.

Return Value

Type
Description

Returns all applicable transaction results, including transaction reference number, batch number, transaction result (approved, declined, or error), result code, authorization code, AVS result, CVV2 result, Verified by Visa or SecureCode Mastercard results, and converted currency amount and rate.

Examples

<?php
try {
 $Parameters=array(
  'Command'=>'Sale',
 'Details'=>array(
   'Invoice' => rand(),
   'PONum' => '',
   'OrderID' => '',
   'Description' => 'Sample Credit Card Sale',
   'Amount'=>'1.50' )
   );
 $CustNum='123456';
 $PayMethod='0';
 $res=$client->runCustomerTransaction($securityToken, $CustNum, $PayMethod, $Parameters);
 print_r($res);
}
catch (SoapFault $e) {
 echo $client->__getLastRequest();
 echo $client->__getLastResponse();
 die("runCustomerTransaction failed :" .$e->getMessage());
}
?>
string custNum = "89147";
           string paymentMethodID = "19";
           eBizCharge.CustomerTransactionRequest tran = new eBizCharge.CustomerTransactionRequest();
           tran.Details = new eBizCharge.TransactionDetail();
           tran.Details.Invoice = "123456";
           tran.Details.Description = "Sample Credit Card Sale";
           tran.Details.Amount = 1.05;
           tran.Details.AmountSpecified = true;
           eBizCharge.TransactionResponse response = new eBizCharge.TransactionResponse();
           try
           {
               response = client.runCustomerTransaction(securityToken, custNum, paymentMethodID, tran);
               MessageBox.Show(string.Concat(response.Result));
           }
           catch (Exception err)
           {
               MessageBox.Show(err.Message);
           }

runCustomerTransaction


Run a transaction using payment data stored in the customer database.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.