/home/techb158/immovalet.com/vendor/mollie/mollie-api-php/examples/orders
Edit: /home/techb158/immovalet.com/vendor/mollie/mollie-api-php/examples/orders/update-order-line.php (2256B)
orders->get("ord_kEn1PlbGa");
$line = $order->lines()->get('odl_1.uh5oen');
$line->name = "Update line name description";
$orderWithNewLineName = $line->update();
/*
* Send the customer off to complete the order payment.
* This request should always be a GET, thus we enforce 303 http response code
*/
header("Location: " . $orderWithNewLineName->getCheckoutUrl(), true, 303);
} catch (\Mollie\Api\Exceptions\ApiException $e) {
echo "API call failed: " . htmlspecialchars($e->getMessage());
}