Exemple #1
0
    {
        $token = $this->getGatewayToken();
        return $token ? "https://dashboard.stripe.com/customers/{$token}" : false;
    }
    public function getCurrencyId()
    {
        if ($this->currency_id) {
            return $this->currency_id;
        }
        if (!$this->account) {
            $this->load('account');
        }
        return $this->account->currency_id ?: DEFAULT_CURRENCY;
    }
}
/*
Client::created(function($client)
{
    Activity::createClient($client);
});
*/
Client::updating(function ($client) {
    Activity::updateClient($client);
});
Client::deleting(function ($client) {
    Activity::archiveClient($client);
});
/*Client::restoring(function ($client) {
    Activity::restoreClient($client);
});
*/