fix: added customer field to xml response
This commit is contained in:
parent
52ccbe739c
commit
2face178e0
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
const CMS_NAME = 'WHMCS';
|
const CMS_NAME = 'WHMCS';
|
||||||
const MODULE_NAME = 'payanyway';
|
const MODULE_NAME = 'payanyway';
|
||||||
const MODULE_VERSION = '1.0.0';
|
const MODULE_VERSION = '1.0.1';
|
||||||
|
|
||||||
const TRANSACTION_ID_STRING_DELIMITER = '|';
|
const TRANSACTION_ID_STRING_DELIMITER = '|';
|
||||||
|
|
||||||
@ -489,7 +489,8 @@ function payanyway_handleCheckCallback(array $callbackData, array $gatewayParams
|
|||||||
'MNT_AMOUNT' => payanyway_formatAmount($invoiceDetails['total']),
|
'MNT_AMOUNT' => payanyway_formatAmount($invoiceDetails['total']),
|
||||||
'MNT_CURRENCY_CODE' => $callbackData['MNT_CURRENCY_CODE'],
|
'MNT_CURRENCY_CODE' => $callbackData['MNT_CURRENCY_CODE'],
|
||||||
'inventory' => payanyway_getInventoryJson($invoiceItems) ?: null,
|
'inventory' => payanyway_getInventoryJson($invoiceItems) ?: null,
|
||||||
'client' => $callbackData['MNT_SUBSCRIBER_ID'],
|
'client' => null,
|
||||||
|
'customer' => $callbackData['MNT_SUBSCRIBER_ID'],
|
||||||
'sno' => null,
|
'sno' => null,
|
||||||
'delivery' => null,
|
'delivery' => null,
|
||||||
);
|
);
|
||||||
@ -745,6 +746,7 @@ function payanyway_buildXMLResponse(array $data)
|
|||||||
$attributeMap = array(
|
$attributeMap = array(
|
||||||
'INVENTORY' => isset($data['inventory']) ? $data['inventory'] : null,
|
'INVENTORY' => isset($data['inventory']) ? $data['inventory'] : null,
|
||||||
'CLIENT' => isset($data['client']) ? $data['client'] : null,
|
'CLIENT' => isset($data['client']) ? $data['client'] : null,
|
||||||
|
'CUSTOMER' => isset($data['customer']) ? $data['customer'] : null,
|
||||||
'SNO' => isset($data['sno']) ? $data['sno'] : null,
|
'SNO' => isset($data['sno']) ? $data['sno'] : null,
|
||||||
'DELIVERY' => isset($data['delivery']) ? $data['delivery'] : null,
|
'DELIVERY' => isset($data['delivery']) ? $data['delivery'] : null,
|
||||||
);
|
);
|
||||||
@ -769,7 +771,7 @@ function payanyway_getCmsModuleVersion($whmcsVersion)
|
|||||||
{
|
{
|
||||||
$whmcsVersion = isset($whmcsVersion) ? $whmcsVersion : '.unknown';
|
$whmcsVersion = isset($whmcsVersion) ? $whmcsVersion : '.unknown';
|
||||||
|
|
||||||
return sprintf('%s v%s | %s v%s', CMS_NAME, $whmcsVersion, MODULE_NAME, MODULE_VERSION);
|
return sprintf('%s v%s|PHP %s|%s v%s', CMS_NAME, $whmcsVersion, PHP_VERSION, MODULE_NAME, MODULE_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user