Skip to content

Instantly share code, notes, and snippets.

View MathiasBrandt's full-sized avatar
😀

Mathias Brandt MathiasBrandt

😀
  • Copenhagen
View GitHub Profile
public function initialize()
{
parent::initialize();
$this->loadComponent('Auth', [
'authorize' => 'Controller'
]);
}
public function isAuthorized($user)
$charge = \Stripe\Charge::create(array(
"amount" => 100000, // amount in cents, again
"currency" => "DKK",
"source" => $stripeToken,
"description" => "AthGene TestKit to " . $stripeEmail)
);
$email = new Email('default');