Esempio n. 1
0
function getPaymentMethodSummary()
{
    global $messages;
    $accSum = AccountManager::getPaymentMethodDetail($_SESSION['accountId']);
    $pmSum = array($accSum->paymentMethodSummaries, $accSum->ACHpaymentMethodSummaries);
    $messages = $accSum;
}
Esempio n. 2
0
function test_GetPaymentMethodSummary()
{
    global $EXISTING_CUSTOMER_ACCOUNT_NAME;
    printResultStart(__FUNCTION__);
    $messages = array();
    //Test
    echo "Getting paymentMethod summary for user " . $EXISTING_CUSTOMER_ACCOUNT_NAME . "<br>";
    try {
        $sumRes = AccountManager::getPaymentMethodDetail($EXISTING_CUSTOMER_ACCOUNT_NAME);
    } catch (Exception $e) {
        array_push($messages, "Exception: " . $e->getMessage());
    }
    print_r_html($sumRes);
    printResultEnd($messages);
}