<?php

require __DIR__ . '/vendor/autoload.php';
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
Balanced\Settings::$api_key = "ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY";
$order = Balanced\Order::get("/orders/OR3vURGwVtqDnnkRS9fgH41G");
$bank_account = Balanced\BankAccount::get("/bank_accounts/BA45anEaEr8g0lOhzhcE9VAN/credits");
$order->creditTo($bank_account, 5000);
<?php

require __DIR__ . '/vendor/autoload.php';
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
Balanced\Settings::$api_key = "ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV";
$order = Balanced\Order::get("/orders/OR6d55qbtKx5aWSURkQeodRr");
$order->description = 'New description for order';
$order->meta = array("anykey" => "valuegoeshere", "product.id" => "1234567890");
$order->save();
<?php

$order = Balanced\Order::get($order_href);
<?php

require __DIR__ . '/vendor/autoload.php';
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
Balanced\Settings::$api_key = "ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY";
$order = Balanced\Order::get("/orders/OR6nHTLOYehaSU5SoxqQE5WB");
$order->description = 'New description for order';
$order->meta = array("anykey" => "valuegoeshere", "product.id" => "1234567890");
$order->save();
<?php

require __DIR__ . '/vendor/autoload.php';
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
Balanced\Settings::$api_key = "ak-test-aUV295IugdhWSNx2JFckYBCSvfY2ibgq";
$order = Balanced\Order::get("/orders/OR5QcYnwysJXQswImokq6ZSx");
$card = Balanced\Card::get("/cards/CC5OD6648yiKfSzfj6z6MdXr");
$order->debitFrom($card, "5000");