Exemplo n.º 1
0
<?php

require_once '../vendor/autoload.php';
require_once 'config.php';
try {
    $merchant = Paynl\Alliance\Merchant::get(array('merchantId' => 'M-1699-0230'));
    $data = $merchant->getData();
    var_dump($data);
} catch (Exception $e) {
    echo "Error occurred: " . $e->getMessage();
}
Exemplo n.º 2
0
<?php

require_once '../vendor/autoload.php';
require_once 'config.php';
try {
    $result = Paynl\Alliance\Merchant::getList(array('state' => 'accepted'));
    $merchants = $result->getMerchants();
    foreach ($merchants as $merchant) {
        echo $merchant->getMerchantId() . ' ' . $merchant->getMerchantName() . "<br />";
    }
} catch (Exception $e) {
    echo "Error occurred: " . $e->getMessage();
}
Exemplo n.º 3
0
<?php

require_once '../vendor/autoload.php';
require_once 'config.php';
try {
    $merchant = Paynl\Alliance\Merchant::get(array('merchantId' => 'M-1820-9300'));
    // documents that still need to be uploaded
    $documents = $merchant->getMissingDocuments();
    foreach ($documents as $document) {
        var_dump($document);
    }
    $data = $merchant->getData();
    var_dump($data);
} catch (Exception $e) {
    echo "Error occurred: " . $e->getMessage();
}