This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$email = new Email('default'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$charge = \Stripe\Charge::create(array( | |
"amount" => 100000, // amount in cents, again | |
"currency" => "DKK", | |
"source" => $stripeToken, | |
"description" => "AthGene TestKit to " . $stripeEmail) | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function initialize() | |
{ | |
parent::initialize(); | |
$this->loadComponent('Auth', [ | |
'authorize' => 'Controller' | |
]); | |
} | |
public function isAuthorized($user) |