<?php require_once '../../../vendor/autoload.php'; require_once '../../config.php'; try { $result = Paynl\DirectDebit\Mandate::addTransaction(array('mandateId' => 'IO-6604-2112-1710', 'amount' => 0.1, 'description' => 'Handmatig herhaald', 'processDate' => new DateTime('tomorrow'))); var_dump($result->getData()); } catch (\Paynl\Error\Error $e) { echo "Error: " . $e->getMessage(); }
<?php require_once '../../../vendor/autoload.php'; require_once '../../config.php'; try { $result = Paynl\DirectDebit\Mandate::add(array('amount' => 0.1, 'bankaccountHolder' => 'N. Klant', 'bankaccountNumber' => 'NL00RABO0123456789', 'bankaccountBic' => 'RABONL2U', 'processDate' => new DateTime('tomorrow'), 'description' => 'De omschrijving', 'ipAddress' => '192.168.20.123', 'email' => '*****@*****.**', 'promotorId' => '123456789', 'tool' => 'sdk', 'info' => 'info', 'object' => 'object', 'extra1' => 'extra1', 'extra2' => 'extra2', 'extra3' => 'extra3', 'currency' => 'EUR')); echo $result->getMandateId(); } catch (\Paynl\Error\Error $e) { echo "Error: " . $e->getMessage(); }
<?php require_once '../../../vendor/autoload.php'; require_once '../../config.php'; try { $result = Paynl\DirectDebit\Mandate::get('IO-6604-2112-1710'); var_dump($result->getData()['result']); } catch (\Paynl\Error\Error $e) { echo "Error: " . $e->getMessage(); }