Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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