Skip to content

Instantly share code, notes, and snippets.

@tlongren
Created February 16, 2014 19: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 tlongren/9039329 to your computer and use it in GitHub Desktop.
Save tlongren/9039329 to your computer and use it in GitHub Desktop.
AltoRouter charge.php
<?php
$customer = new Customer();
$customer_id = $match['params']['customer_id'];
if ($customer->valid_customer($customer_id) && $customer->needs_paid($customer_id)) {
$customer->pay($customer_id);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment