cancel
Showing results for 
Search instead for 
Did you mean: 

Authorize.net can setting Notification, like paypal or ebay Notify!????

  Hi.

     I want to integration  Authorize.net with ebay. when buyer in ebay  and choose Authorize.net payment.

    so our System want to receive the payment Message From Authorize Notification.  from ebay Message and Authorize Message ,our system can know the order  is payment or not payment.

 

like Paypal Notification. when some people using the paypal payment. then Paypal send Notification to Our setting url.

and our system can receive the notification.

 

 I want to know the Authotize support  the way. if support , please give me idea! thanks

 

I use java to develop .

 

david-jiang
Contributor
5 REPLIES 5

Yes, it is called "Silent Post". In your Authorize.net control panel, you can set a Silent Post URL, and every time a transaction processes through Authorize.net, you will get a post to that URL. You should start by logging $_POST (if using PHP) to a file and sending through a transaction in live mode, so you can see what the fields look like when they come through. For instance, here's a Silent Post page I use to record just my Authorize.net ARB transactions, you'll need to change it some if you want to record all transactions.

 

<?php
// My database connection and query functions are here
require_once($_SERVER['DOCUMENT_ROOT'] . '/library/mysql.php');

$logfile = "{$_SERVER['DOCUMENT_ROOT']}/logs/callback.txt";
$handle = fopen($logfile, 'a');

// Eliminate fields you don't want to log
foreach (array('x_method', 'x_account_number', 'x_phone', 'x_fax', 'x_email', 'x_invoice_num', 'x_type', 'x_ship_to_first_name', 'x_ship_to_last_name', 'x_ship_to_company', 'x_ship_to_address', 'x_ship_to_city', 'x_ship_to_state', 'x_ship_to_zip', 'x_ship_to_country', 'x_tax', 'x_duty', 'x_freight', 'x_tax_exempt', 'x_po_num', 'x_cvv2_resp_code', 'x_cavv_response', 'x_test_request') as $key)
    unset($_POST[$key]);

fwrite($handle, print_r($_POST, true));

// --------------------------------------------

// Only transactions with a response code of 1 completed
// Only my ARB subscriptions have a customer ID attached
if ($_POST['x_response_code'] == 1 && $_POST['x_cust_id']) {
    if (!$link = db_connect()) {
        fwrite($handle, "Unable to connect to database.\n");
        exit;
    }

    // Log payment entry in database
    $query = queryMysql("
    INSERT INTO payments SET company = {company}, payment = {payment}, type = 'MONTHLY', paid = NOW()",
    array(
        company => $_POST['x_cust_id'],
        payment => $_POST['x_amount']
    ));

    if (!$result = mysql_query($query, $link))
        fwrite($handle, "ERROR: Unable to add payment record to database.\n");
    else
        fwrite($handle, "Payment record added to database.\n");

    $query = queryMysql("
    UPDATE companies SET payment_due = payment_due + INTERVAL 1 MONTH WHERE idn = {company}",
    array(
        company => $_POST['x_cust_id']
    ));

    if (!$result = mysql_query($query, $link))
        fwrite($handle, "ERROR: Unable to update company expiration date.\n");
    else
        fwrite($handle, "Company expiration date updated.\n");
}
else fwrite($handle, "ERROR: Bad response code and/or missing customer ID.\n");

// So I can see if it works without syntax errors when I call it myself
print 'Ran';
?>

 

TJPride
Expert

 Thanks for you help.

 

 I know  Silent Post can do it. and I can get this meesage. but the message is not validate . I want  to validate this message.  Your know, this message maybe not our account transaction message.

so any idea??

 

 

 

hi TJPride,

  could you give me some GetTransactionDetails or GetTransactionList java example.

  I want to use GetTransactionDetails or GetTransactionList  

    get  payment message when our system is stop. 

 

thx.

Download the Java SDK, read the documentation:

http://developer.authorize.net/api/transaction_details/

 

I'd give samples if I had them, but I don't program in Java.

Hi TJPride

 thank you for help.

  I debug it.

 I try change this code

net.authorize.reporting.Transaction transaction =  merchant.createReportingTransaction(net.authorize.reporting.TransactionType.GET_SETTLED_BATCH_LIST)

to

net.authorize.reporting.Transaction transaction =  merchant.createReportingTransaction(net.authorize.reporting.TransactionType.GET_TRANSACTION_DETAILS)

 

but return error message.