Пример #1
0
$privateData1['value'] = $_POST['privateDataValue1'];
$payline->setPrivate($privateData1);
$privateData2 = array();
$privateData2['key'] = $_POST['privateDataKey2'];
$privateData2['value'] = $_POST['privateDataValue2'];
$payline->setPrivate($privateData2);
$privateData3 = array();
$privateData3['key'] = $_POST['privateDataKey3'];
$privateData3['value'] = $_POST['privateDataValue3'];
$payline->setPrivate($privateData3);
// CARD INFO
$array['card']['number'] = $_POST['cardNumber'];
$array['card']['type'] = $_POST['cardType'];
$array['card']['expirationDate'] = $_POST['cardExpirationDate'];
$array['card']['cvx'] = $_POST['cardCrypto'];
$array['card']['ownerBirthdayDate'] = $_POST['cardOwnerBirthdayDate'];
$array['card']['password'] = $_POST['cardPassword'];
//AUTHENTICATION 3DSECURE
$array['3DSecure']['md'] = $_POST['3DSecureMd'];
$array['3DSecure']['pares'] = $_POST['3DSecurePares'];
//AUTHORIZATION
$array['authorization']['number'] = $_POST['authNumber'];
$array['authorization']['date'] = $_POST['authDate'];
// RESPONSE
$response = $payline->do_debit($array);
require '../demos/result/header.html';
echo '<H3>REQUEST</H3>';
print_a($array);
echo '<H3>RESPONSE</H3>';
print_a($response, 0, true);
require '../demos/result/footer.html';