setRest(); $Afterpay->set_ordermanagement('validate_bankaccount'); // Set up the additional information $aporder['bankCode'] = 'DEUTDEBB'; $aporder['bankAccount'] = 'DE89370400440532013000'; // Create the order object for order management (OM) $Afterpay->set_order($aporder, 'OM'); // Set up the AfterPay credentials and sent the order $authorisation['apiKey'] = ''; $modus = 'test'; // for production set to 'live' // Show request in debug echo '
' . print_r(array('AfterPay Request' => $Afterpay), 1) . '';
$Afterpay->do_request($authorisation, $modus);
// Show result in debug
echo '' . print_r(array('AfterPay Result' => $Afterpay->order_result), 1) . '';