Beispiel #1
0
<?php

require dirname(__FILE__) . '/main.php';
$cr = new CyberSource\Reporting($merchant_id, $username, $password, CyberSource\Reporting::ENV_TEST);
$payments = $cr->payment_submission_detail();
$total = 0;
foreach ($payments as $payment) {
    $total = $total + $payment['amount'];
}
echo number_format($total, 2);
<?php

require dirname(__FILE__) . '/main.php';
$cr = new CyberSource\Reporting($merchant_id, $username, $password, CyberSource\Reporting::ENV_TEST);
$transactions = $cr->transaction_detail();
$customers = array();
foreach ($transactions as $transaction) {
    $customers[] = $transaction['customer_email'];
}
print_r(array_filter(array_unique($customers)));