apiKey = $apiKey; } public function charge($amount, $token) { Charge::create([ 'amount' => $amount, 'source' => $token, 'currency' => 'usd', ], ['api_key' => $this->apiKey]); } }