2012-04-16 12 views
1

Zend Frameworkを使用してARBトランザクションログのリストを取得するにはどうすればよいですか?curl Request APIを使用してAuthorize.netのARB支払い処理のログを取得しますか?

実際、私はAuthorize.netのトランザクション詳細apiを通過しましたが、ARBのスコープはありません。だから誰も私にこの問題のためのより良い代替ソリューションになることを示唆することができます。

ありがとうございます。

答えて

1

過去のサブスクリプションに関する詳細情報を入手する方法はありません。あなたができる最善のことは、予定されている支払いを行っている間現在のステータスを記録することです。 Authorize.Netは、PaypalのIPNに似たサービスを提供して、Silent Postと呼ばれ、アカウントに対して実行されるすべてのトランザクションに関する取引情報を送信します。これにはARBサブスクリプションが含まれます。

ここhandling Silent Post submissions with PHPための基本的なスクリプトだと唯一のARBサブスクリプションの支払いを扱う:

<?php 
// Get the subscription ID if it is available. 
// Otherwise $subscription_id will be set to zero. 
$subscription_id = (int) $_POST['x_subscription_id']; 

// Check to see if we got a valid subscription ID. 
// If so, do something with it. 
if ($subscription_id !== 0) 
{ 
    // Get the response code. 1 is success, 2 is decline, 3 is error 
    $response_code = (int) $_POST['x_response_code']; 

    // Get the reason code. 8 is expired card. 
    $reason_code = (int) $_POST['x_response_reason_code']; 

    if ($response_code == 1) 
    { 
     // Approved! 

     // Some useful fields might include: 
     // $authorization_code = $_POST['x_auth_code']; 
     // $avs_verify_result = $_POST['x_avs_code']; 
     // $transaction_id  = $_POST['x_trans_id']; 
     // $customer_id  = $_POST['x_cust_id']; 
    } 
    else if ($response_code == 2) 
    { 
     // Declined 
    } 
    else if ($response_code == 3 && $reason_code == 8) 
    { 
     // An expired card 
    } 
    else 
    { 
     // Other error 
    } 
} 
?> 

免責事項:私は両方のブログの記事に

+0

を書いた私を返信用ハイジョンの感謝が、トランザクションを取得するための別の方法があります詳細。なぜなら私たちのサーバがダウンしているかメンテナンス時間がある場合、サイレントポストコール中に実行中のエントリを取得できないからです。 迅速な対応に感謝します。 –

関連する問題