Esempio n. 1
0
                print '<pre>';
                print_r($pagination);
                print '</pre>';
                if (isset($sorting)) {
                    print '<pre>Sort: ';
                }
                print_r($_POST["_sort_"]);
                print '</pre>';
                break;
            case 'CreateKycPageByFile':
                $apiResult = $api->{$subApiName}->CreateKycPageFromFile($entityId, $subEntityId, $_FILES['kyc_page']);
                break;
        }
        print '<pre>';
        print_r($apiResult);
        print '</pre>';
    } catch (\MangoPay\Libraries\ResponseException $e) {
        echo '<div style="color: red;">\\MangoPay\\ResponseException: Code: ' . $e->getCode();
        echo '<br/>Message: ' . $e->getMessage();
        $details = $e->GetErrorDetails();
        if (!is_null($details)) {
            echo '<br/><br/>Details: ';
        }
        print_r($details);
        echo '</div>';
    } catch (\MangoPay\Libraries\Exception $e) {
        echo '<div style="color: red;">\\MangoPay\\Exception: ' . $e->getMessage() . '</div>';
    }
} else {
    HtmlHelper::renderForm($entityName, $operation, array($subEntityName, $subSubEntityName), $filterName);
}