CMXX - First testing
This commit is contained in:
10
webhook.php
10
webhook.php
@@ -5,8 +5,8 @@ define('interface', true);
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
// Includes
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
include '/custom/settings/config.php';
|
||||
include 'functions.php';
|
||||
include './custom/settings/config.php';
|
||||
include './functions.php';
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
//LOGIN TO API
|
||||
@@ -76,7 +76,9 @@ try {
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
//Send the invoice when status is Paid
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
list($data,$customer_email,$order_id) = generateInvoice($invoice_cust,$orderId);
|
||||
$invoice_language = strtoupper($invoice_cust['customer']['language']!= '' ? $invoice_cust['customer']['language'] : $responses['language']);
|
||||
|
||||
list($data,$customer_email,$order_id) = generateInvoice($invoice_cust,$orderId,$invoice_language);
|
||||
|
||||
//CREATE PDF
|
||||
$dompdf->loadHtml($data);
|
||||
@@ -157,4 +159,4 @@ try {
|
||||
}
|
||||
} catch (\Mollie\Api\Exceptions\ApiException $e) {
|
||||
echo "API call failed: " . htmlspecialchars($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user