Skip to content

Instantly share code, notes, and snippets.

@SecurityForUs
Created December 4, 2012 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SecurityForUs/4209549 to your computer and use it in GitHub Desktop.
Save SecurityForUs/4209549 to your computer and use it in GitHub Desktop.
<?php
// $mp is the reference to your marketplace
$debit = $mp->debits->query()->filter(Balanced\Debit::$f->uri->eq($debit_uri))->one();
// Full refund
$debit->refund();
// Partial refund ($5.00)
$debit->refund(500);
/* for sake of clarity i did not add exception handling to this, but i would advise of it */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment