<?php

require __DIR__ . '/vendor/autoload.php';
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
Balanced\Settings::$api_key = "ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV";
$refund = Balanced\Refund::get("/refunds/RF4VbbS5LdgSxlECITkHg0Zf");
Пример #2
0
<?php

require __DIR__ . '/vendor/autoload.php';
Httpful\Bootstrap::init();
RESTful\Bootstrap::init();
Balanced\Bootstrap::init();
Balanced\Settings::$api_key = "ak-test-2eKlj1ZDfAcZSARMf3NMhBHywDej0avSY";
$refund = Balanced\Refund::get("/refunds/RF5OXw4w1a9g2GsPqQ2Hg9hj");
$refund->description = "update this description";
$refund->meta = array("refund.reason" => "user not happy with product", "user.notes" => "very polite on the phone", "user.refund.count" => "3");
$refund->save();